mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-21 23:51:36 +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;
|
continue;
|
||||||
|
|
||||||
final boolean intersects;
|
final boolean intersects;
|
||||||
if (type == EntityType.PLAYER) {
|
if (entity instanceof Player) {
|
||||||
// Ignore spectators
|
// Ignore spectators
|
||||||
if (((Player) entity).getGameMode() == GameMode.SPECTATOR)
|
if (((Player) entity).getGameMode() == GameMode.SPECTATOR)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user