Skip to content

Commit

Permalink
Merge pull request #77 from SymmetricDevs/tc-fix-home-block
Browse files Browse the repository at this point in the history
fix breaking home block not resetting spawn point
  • Loading branch information
swagXDragonSlayer46YT authored May 17, 2023
2 parents 2123eff + 4a66753 commit 1cdeabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/supersymmetry/common/blocks/BlockHome.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public boolean onBlockActivated(@NotNull World worldIn, @NotNull BlockPos pos, @
float hitX, float hitY, float hitZ) {
if (!worldIn.isRemote) {
if (worldIn.provider.canRespawnHere() && worldIn.getBiome(pos) != net.minecraft.init.Biomes.HELL) {
playerIn.setSpawnPoint(pos, true);
playerIn.setSpawnPoint(pos, false);
playerIn.sendStatusMessage(new TextComponentTranslation("tile.home.allowed"), true);
} else {
playerIn.sendStatusMessage(new TextComponentTranslation("tile.home.denied"), true);
Expand Down

0 comments on commit 1cdeabd

Please sign in to comment.