Simplify close inventory patch
This commit is contained in:
parent
0bb0ba794f
commit
df32b00c1e
|
@ -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 <md_5@live.com.au>
|
||||
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<org.bukkit.craftbukkit.entity.CraftHumanEntity>() )
|
||||
+ for ( HumanEntity human : new java.util.ArrayList<HumanEntity>( transaction ) )
|
||||
+ {
|
||||
+ human.closeInventory();
|
||||
+ }
|
||||
|
|
Loading…
Reference in New Issue