Commits

Thinkofname authored 939f76458e7
Fire EntityDamageEvent for armor stands

Somewhat of a lazy way of doing it but it will do for now
No tags

nms-patches/EntityArmorStand.patch

Added
1 +--- ../work/decompile-8eb82bde//net/minecraft/server/EntityArmorStand.java 2014-11-29 16:03:15.597435308 +0000
2 ++++ src/main/java/net/minecraft/server/EntityArmorStand.java 2014-11-29 16:02:17.625436595 +0000
3 +@@ -343,6 +343,11 @@
4 + }
5 +
6 + public boolean damageEntity(DamageSource damagesource, float f) {
7 ++ // CraftBukkit start
8 ++ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f)) {
9 ++ return false;
10 ++ }
11 ++ // CraftBukkit end
12 + if (!this.world.isStatic && !this.h) {
13 + if (DamageSource.OUT_OF_WORLD.equals(damagesource)) {
14 + this.die();

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut