diff options
author | md_5 <git@md-5.net> | 2016-07-08 11:12:40 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-07-08 11:12:40 +1000 |
commit | d7c257e120996eab1eab7d2bc5a31749ccbe274a (patch) | |
tree | bfc1583b58526fc6442e89b9d81d9e11b6986ca6 /nms-patches/EntityEnderman.patch | |
parent | a327d9f1da49d0ede770894d83e33d10fb6c19fd (diff) | |
download | craftbukkit-d7c257e120996eab1eab7d2bc5a31749ccbe274a.tar craftbukkit-d7c257e120996eab1eab7d2bc5a31749ccbe274a.tar.gz craftbukkit-d7c257e120996eab1eab7d2bc5a31749ccbe274a.tar.lz craftbukkit-d7c257e120996eab1eab7d2bc5a31749ccbe274a.tar.xz craftbukkit-d7c257e120996eab1eab7d2bc5a31749ccbe274a.zip |
SPIGOT-2490: Villager farming event
Diffstat (limited to 'nms-patches/EntityEnderman.patch')
-rw-r--r-- | nms-patches/EntityEnderman.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/EntityEnderman.patch b/nms-patches/EntityEnderman.patch index 1c4a6acf..fbb2c661 100644 --- a/nms-patches/EntityEnderman.patch +++ b/nms-patches/EntityEnderman.patch @@ -56,7 +56,7 @@ if (iblockdata2 != null && this.a(world, blockposition, iblockdata2.getBlock(), iblockdata, iblockdata1)) { + // CraftBukkit start - Place event -+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(this.a, blockposition.getX(), blockposition.getY(), blockposition.getZ(), this.a.getCarried().getBlock(), this.a.getCarried().getBlock().toLegacyData(this.a.getCarried())).isCancelled()) { ++ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(this.a, blockposition, this.a.getCarried().getBlock(), this.a.getCarried().getBlock().toLegacyData(this.a.getCarried())).isCancelled()) { world.setTypeAndData(blockposition, iblockdata2, 3); this.a.setCarried((IBlockData) null); + } |