Skip to content

Commit

Permalink
Fixed incorrect detection of solid blocks when teleporting safely pla…
Browse files Browse the repository at this point in the history
…yers
  • Loading branch information
OmerBenGera committed Mar 11, 2022
1 parent 039009f commit 23da113
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -45,7 +45,7 @@ public static boolean isSafeBlock(Block block) {
Block underBlock = block.getRelative(BlockFace.DOWN);
Block upperBlock = block.getRelative(BlockFace.UP);
return !upperBlock.getType().isOccluding() && !block.getType().isOccluding() &&
(underBlock.getType().isSolid() || underBlock.getRelative(BlockFace.DOWN).getType().isSolid());
(underBlock.getType().isOccluding() || underBlock.getRelative(BlockFace.DOWN).getType().isOccluding());
}

public static boolean isChunkEmpty(Island island, ChunkSnapshot chunkSnapshot) {
Expand Down

0 comments on commit 23da113

Please sign in to comment.