summaryrefslogtreecommitdiffstats
path: root/nms-patches/ItemArmorStand.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-10-23 06:00:00 +1100
committermd_5 <git@md-5.net>2018-10-23 06:00:00 +1100
commitb4230a9a7efde35b30fefdb4a2492209d5334def (patch)
tree62e6e1933ed69e46e56a559e2a723d5a91f18244 /nms-patches/ItemArmorStand.patch
parenta639ae44d24fd7ce48c9390c27dd70cc5fd9d38b (diff)
downloadcraftbukkit-b4230a9a7efde35b30fefdb4a2492209d5334def.tar
craftbukkit-b4230a9a7efde35b30fefdb4a2492209d5334def.tar.gz
craftbukkit-b4230a9a7efde35b30fefdb4a2492209d5334def.tar.lz
craftbukkit-b4230a9a7efde35b30fefdb4a2492209d5334def.tar.xz
craftbukkit-b4230a9a7efde35b30fefdb4a2492209d5334def.zip
Update to Minecraft 1.13.2
Diffstat (limited to 'nms-patches/ItemArmorStand.patch')
-rw-r--r--nms-patches/ItemArmorStand.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/nms-patches/ItemArmorStand.patch b/nms-patches/ItemArmorStand.patch
new file mode 100644
index 00000000..08587855
--- /dev/null
+++ b/nms-patches/ItemArmorStand.patch
@@ -0,0 +1,14 @@
+--- a/net/minecraft/server/ItemArmorStand.java
++++ b/net/minecraft/server/ItemArmorStand.java
+@@ -40,6 +40,11 @@
+ entityarmorstand.setPositionRotation(d0 + 0.5D, d1, d2 + 0.5D, f, 0.0F);
+ this.a(entityarmorstand, world.random);
+ EntityTypes.a(world, itemactioncontext.getEntity(), entityarmorstand, itemstack.getTag());
++ // CraftBukkit start
++ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityPlaceEvent(itemactioncontext, entityarmorstand).isCancelled()) {
++ return EnumInteractionResult.FAIL;
++ }
++ // CraftBukkit end
+ world.addEntity(entityarmorstand);
+ world.a((EntityHuman) null, entityarmorstand.locX, entityarmorstand.locY, entityarmorstand.locZ, SoundEffects.ENTITY_ARMOR_STAND_PLACE, SoundCategory.BLOCKS, 0.75F, 0.8F);
+ }