-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
This server is running CraftBukkit version 3208-Spigot-18c71bf-97f629b (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)
-
Yes
When burning an armor stand, the EntityDamageByBlockEvent isn't being triggered.
Expected behaviour is that the event should trigger, as EntityDamageBy events trigger for armor stands on all other causes of destruction.
This event is necessary, as the inventory data is already wiped in the world by the time the EntityDeathEvent triggers.
Replication:
- Place an armor stand.
- Use flint and steel, and place fire at the base
- Armor stand is destroyed, event isn't triggered.
Code:
@EventHandler(priority = EventPriority.MONITOR) protected void onEntityDamageByBlock(EntityDamageByBlockEvent event) { Entity entity = event.getEntity(); if (entity instanceof ArmorStand) { System.out.println("Armor Stand Damaged by Block"); } }
Thanks!