mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-18 06:02:47 +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;
|
continue;
|
||||||
|
|
||||||
// Marker Armor Stands should not prevent block placement
|
// Marker Armor Stands should not prevent block placement
|
||||||
if(entity.getEntityType() == EntityType.ARMOR_STAND) {
|
if(entity.getEntityMeta() instanceof ArmorStandMeta) {
|
||||||
ArmorStandMeta armorStandMeta = (ArmorStandMeta) entity.getEntityMeta();
|
ArmorStandMeta armorStandMeta = (ArmorStandMeta) entity.getEntityMeta();
|
||||||
if(armorStandMeta.isMarker()) {
|
if(armorStandMeta.isMarker()) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user