summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityRabbit.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-07-08 11:12:40 +1000
committermd_5 <git@md-5.net>2016-07-08 11:12:40 +1000
commitd7c257e120996eab1eab7d2bc5a31749ccbe274a (patch)
treebfc1583b58526fc6442e89b9d81d9e11b6986ca6 /nms-patches/EntityRabbit.patch
parenta327d9f1da49d0ede770894d83e33d10fb6c19fd (diff)
downloadcraftbukkit-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/EntityRabbit.patch')
-rw-r--r--nms-patches/EntityRabbit.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/EntityRabbit.patch b/nms-patches/EntityRabbit.patch
index 0ecf7855..ede26f1e 100644
--- a/nms-patches/EntityRabbit.patch
+++ b/nms-patches/EntityRabbit.patch
@@ -20,7 +20,7 @@
if (integer.intValue() == 0) {
+ // CraftBukkit start
-+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(this.c, blockposition.getX(), blockposition.getY(), blockposition.getZ(), Blocks.AIR, 0).isCancelled()) {
++ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(this.c, blockposition, Blocks.AIR, 0).isCancelled()) {
+ return;
+ }
+ // CraftBukkit end
@@ -30,7 +30,7 @@
+ // CraftBukkit start
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(
+ this.c,
-+ blockposition.getX(), blockposition.getY(), blockposition.getZ(),
++ blockposition,
+ block, block.toLegacyData(iblockdata.set(BlockCarrots.AGE, Integer.valueOf(integer.intValue() - 1)))
+ ).isCancelled()) {
+ return;