From f5643a1d3461675909c991dcb5b26d9bc9da68b6 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Mon, 24 Mar 2014 12:01:26 +0000 Subject: [PATCH] Fix missed diff in TileEntityHopper --- ...-Fix-missed-diff-in-TileEntityHopper.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 CraftBukkit-Patches/0124-Fix-missed-diff-in-TileEntityHopper.patch diff --git a/CraftBukkit-Patches/0124-Fix-missed-diff-in-TileEntityHopper.patch b/CraftBukkit-Patches/0124-Fix-missed-diff-in-TileEntityHopper.patch new file mode 100644 index 000000000..9aef2392e --- /dev/null +++ b/CraftBukkit-Patches/0124-Fix-missed-diff-in-TileEntityHopper.patch @@ -0,0 +1,22 @@ +From bac29928953da2120a3ed79f9404d7495a44f29b Mon Sep 17 00:00:00 2001 +From: Thinkofdeath +Date: Mon, 24 Mar 2014 11:59:59 +0000 +Subject: [PATCH] Fix missed diff in TileEntityHopper + + +diff --git a/src/main/java/net/minecraft/server/TileEntityHopper.java b/src/main/java/net/minecraft/server/TileEntityHopper.java +index 8ace84f..fed4ece 100644 +--- a/src/main/java/net/minecraft/server/TileEntityHopper.java ++++ b/src/main/java/net/minecraft/server/TileEntityHopper.java +@@ -265,7 +265,7 @@ public class TileEntityHopper extends TileEntity implements IHopper { + InventoryMoveItemEvent event = new InventoryMoveItemEvent(this.getOwner().getInventory(), oitemstack.clone(), destinationInventory, true); + this.getWorld().getServer().getPluginManager().callEvent(event); + if (event.isCancelled()) { +- this.setItem(i, itemstack); ++ this.setItem(j, itemstack); // Spigot i -> j + this.c(world.spigotConfig.hopperTransfer); // Spigot + return false; + } +-- +1.8.5.2.msysgit.0 +