mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-21 15:41:38 +01:00
BlockCollision#canPlaceBlockAt player check fix (#1213)
This commit is contained in:
parent
ba73c742f4
commit
4884051c6a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user