From 4884051c6a77dc2a6c351d0682fc1a9bfe2d6f71 Mon Sep 17 00:00:00 2001 From: Konstantin Shandurenko Date: Thu, 7 Jul 2022 05:16:56 +0300 Subject: [PATCH] BlockCollision#canPlaceBlockAt player check fix (#1213) --- src/main/java/net/minestom/server/collision/BlockCollision.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/collision/BlockCollision.java b/src/main/java/net/minestom/server/collision/BlockCollision.java index 12d31ecd2..a2f65b2c7 100644 --- a/src/main/java/net/minestom/server/collision/BlockCollision.java +++ b/src/main/java/net/minestom/server/collision/BlockCollision.java @@ -293,7 +293,7 @@ final class BlockCollision { continue; final boolean intersects; - if (type == EntityType.PLAYER) { + if (entity instanceof Player) { // Ignore spectators if (((Player) entity).getGameMode() == GameMode.SPECTATOR) continue;