Skip to content

Commit

Permalink
fix #35 and by extension Sinytra/Connector#1308
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Aug 10, 2024
1 parent 793fe5d commit 2e73701
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ default void send() {

default boolean canEdit(ServerPlayerEntity player) {
if (!player.getServerWorld().isChunkLoaded(ChunkPos.toLong(pos()))) return false;
if (!(player.squaredDistanceTo(pos().toCenterPos()) > 12 * 12)) return false;
if (player.squaredDistanceTo(pos().toCenterPos()) > (12 * 12)) return false;
return player.getServerWorld().getBlockState(pos()).getBlock() instanceof GlowcaseBlock block && block.canEditGlowcase(player, pos());
}
}

0 comments on commit 2e73701

Please sign in to comment.