From b45c0327c87266e99953b45e8eef29f8d3792be6 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Mon, 28 Nov 2016 21:32:05 +0000 Subject: [PATCH] Update inventory. Fixes #505 --- ...131-Improve-Minecraft-Hopper-Performance.patch | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Spigot-Server-Patches/0131-Improve-Minecraft-Hopper-Performance.patch b/Spigot-Server-Patches/0131-Improve-Minecraft-Hopper-Performance.patch index 844bc9b41..28729b13c 100644 --- a/Spigot-Server-Patches/0131-Improve-Minecraft-Hopper-Performance.patch +++ b/Spigot-Server-Patches/0131-Improve-Minecraft-Hopper-Performance.patch @@ -1,4 +1,4 @@ -From 991a1ae6922a3bfab70d43eccec3d5843c80088d Mon Sep 17 00:00:00 2001 +From 0eaf3ca3298bb5c9a52c60b66f6d250e6797fa95 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 27 Apr 2016 22:09:52 -0400 Subject: [PATCH] Improve Minecraft Hopper Performance @@ -27,7 +27,7 @@ index 1f3e89b..b2122a9 100644 this.g = iblockdata.getBlock().toLegacyData(iblockdata); diff --git a/src/main/java/net/minecraft/server/TileEntityHopper.java b/src/main/java/net/minecraft/server/TileEntityHopper.java -index f12bc70..4ebcf47 100644 +index f12bc70..7154776 100644 --- a/src/main/java/net/minecraft/server/TileEntityHopper.java +++ b/src/main/java/net/minecraft/server/TileEntityHopper.java @@ -455,7 +455,9 @@ public class TileEntityHopper extends TileEntityLootable implements IHopper, ITi @@ -40,15 +40,6 @@ index f12bc70..4ebcf47 100644 itemstack = ItemStack.a; flag = true; } else if (a(itemstack1, itemstack)) { -@@ -486,7 +488,7 @@ public class TileEntityHopper extends TileEntityLootable implements IHopper, ITi - } - } - -- iinventory1.update(); -+ //iinventory1.update(); // Paper - } - } - @@ -558,6 +560,7 @@ public class TileEntityHopper extends TileEntityLootable implements IHopper, ITi this.f = i; } @@ -58,5 +49,5 @@ index f12bc70..4ebcf47 100644 return this.f > 0; } -- -2.10.2 +2.10.0