From df32b00c1efe000c77f7c062f27c609be1b4c6d3 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 29 Jun 2013 13:46:41 +1000 Subject: [PATCH] Simplify close inventory patch --- CraftBukkit-Patches/0058-Properly-Close-Inventories.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CraftBukkit-Patches/0058-Properly-Close-Inventories.patch b/CraftBukkit-Patches/0058-Properly-Close-Inventories.patch index 73a0097..6fe98ee 100644 --- a/CraftBukkit-Patches/0058-Properly-Close-Inventories.patch +++ b/CraftBukkit-Patches/0058-Properly-Close-Inventories.patch @@ -1,4 +1,4 @@ -From ad44b01ddbd663ce087352ac51b2043e8d592330 Mon Sep 17 00:00:00 2001 +From 7a8b5c8e972137ad02eb50e9ce7da758dab61d99 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 27 Jun 2013 17:26:09 +1000 Subject: [PATCH] Properly Close Inventories @@ -42,7 +42,7 @@ index e8d30c5..4879db6 100644 // Do not pass along players, as doing so can get them stuck outside of time. // (which for example disables inventory icon updates and prevents block breaking) diff --git a/src/main/java/net/minecraft/server/EntityMinecartContainer.java b/src/main/java/net/minecraft/server/EntityMinecartContainer.java -index c207076..45d2767 100644 +index c207076..8f9f558 100644 --- a/src/main/java/net/minecraft/server/EntityMinecartContainer.java +++ b/src/main/java/net/minecraft/server/EntityMinecartContainer.java @@ -149,6 +149,12 @@ public abstract class EntityMinecartContainer extends EntityMinecartAbstract imp @@ -50,7 +50,7 @@ index c207076..45d2767 100644 public void c(int i) { + // Spigot Start -+ for ( org.bukkit.craftbukkit.entity.CraftHumanEntity human : new java.util.ArrayList() ) ++ for ( HumanEntity human : new java.util.ArrayList( transaction ) ) + { + human.closeInventory(); + }