BlockCollision#canPlaceBlockAt player check fix (#1213)

This commit is contained in:
Konstantin Shandurenko 2022-07-07 05:16:56 +03:00 committed by GitHub
parent ba73c742f4
commit 4884051c6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;