From 6a2846a9c617c59af834af0132bc106027ebed47 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 4 Jul 2021 13:58:57 +0800 Subject: [PATCH] Check whether entityMeta is an instanceof ArmorStandMeta, instead of checking entity type --- .../net/minestom/server/listener/BlockPlacementListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/listener/BlockPlacementListener.java b/src/main/java/net/minestom/server/listener/BlockPlacementListener.java index 72f3833ea..74fdf4c10 100644 --- a/src/main/java/net/minestom/server/listener/BlockPlacementListener.java +++ b/src/main/java/net/minestom/server/listener/BlockPlacementListener.java @@ -134,7 +134,7 @@ public class BlockPlacementListener { continue; // Marker Armor Stands should not prevent block placement - if(entity.getEntityType() == EntityType.ARMOR_STAND) { + if(entity.getEntityMeta() instanceof ArmorStandMeta) { ArmorStandMeta armorStandMeta = (ArmorStandMeta) entity.getEntityMeta(); if(armorStandMeta.isMarker()) { continue;