mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-17 21:51:33 +01:00
Check whether entityMeta is an instanceof ArmorStandMeta, instead of checking entity type
This commit is contained in:
parent
efbb2b6338
commit
6a2846a9c6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user