From 102438e3e71dde826e6cff78a3787bd913dd705e Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 25 Aug 2013 12:22:37 +1000 Subject: [PATCH] Revert unjustified changes to hopper behaviour. --- .../0040-Hopper-Cooldowns.patch | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/CraftBukkit-Patches/0040-Hopper-Cooldowns.patch b/CraftBukkit-Patches/0040-Hopper-Cooldowns.patch index c27ac97ca4..6e2ce1e22c 100644 --- a/CraftBukkit-Patches/0040-Hopper-Cooldowns.patch +++ b/CraftBukkit-Patches/0040-Hopper-Cooldowns.patch @@ -1,14 +1,14 @@ -From 1c9eb2932f5d4eb8287ee104d53edc1eb8368da3 Mon Sep 17 00:00:00 2001 +From 64b8ebe5748932487931eafeec0a8c9b13ff2454 Mon Sep 17 00:00:00 2001 From: DerFlash Date: Sun, 2 Jun 2013 16:23:46 +1000 Subject: [PATCH] Hopper Cooldowns diff --git a/src/main/java/net/minecraft/server/TileEntityHopper.java b/src/main/java/net/minecraft/server/TileEntityHopper.java -index e8cd525..44ddf35 100644 +index e8cd525..d406fbd 100644 --- a/src/main/java/net/minecraft/server/TileEntityHopper.java +++ b/src/main/java/net/minecraft/server/TileEntityHopper.java -@@ -182,16 +182,19 @@ public class TileEntityHopper extends TileEntity implements IHopper { +@@ -182,7 +182,7 @@ public class TileEntityHopper extends TileEntity implements IHopper { flag = suckInItems(this) || flag; if (flag) { @@ -17,23 +17,7 @@ index e8cd525..44ddf35 100644 this.update(); return true; } - } -- -- return false; -- } else { -- return false; - } -+ // Spigot start -+ if ( this.c == 0 ) -+ { -+ this.c( world.spigotConfig.hopperCheck ); -+ } -+ // Spigot end -+ return false; - } - - private boolean u() { -@@ -218,7 +221,7 @@ public class TileEntityHopper extends TileEntity implements IHopper { +@@ -218,7 +218,7 @@ public class TileEntityHopper extends TileEntity implements IHopper { this.getWorld().getServer().getPluginManager().callEvent(event); if (event.isCancelled()) { this.setItem(i, itemstack); @@ -42,7 +26,7 @@ index e8cd525..44ddf35 100644 return false; } ItemStack itemstack1 = addItem(iinventory, CraftItemStack.asNMSCopy(event.getItem()), Facing.OPPOSITE_FACING[BlockHopper.c(this.p())]); -@@ -299,9 +302,9 @@ public class TileEntityHopper extends TileEntity implements IHopper { +@@ -299,9 +299,9 @@ public class TileEntityHopper extends TileEntity implements IHopper { iinventory.setItem(i, itemstack1); if (ihopper instanceof TileEntityHopper) { @@ -54,7 +38,7 @@ index e8cd525..44ddf35 100644 } return false; -@@ -405,7 +408,7 @@ public class TileEntityHopper extends TileEntity implements IHopper { +@@ -405,7 +405,7 @@ public class TileEntityHopper extends TileEntity implements IHopper { if (flag) { if (iinventory instanceof TileEntityHopper) {