@@ -1,8 +1,8 @@
|
||||
--- a/net/minecraft/server/TileEntityChest.java
|
||||
+++ b/net/minecraft/server/TileEntityChest.java
|
||||
@@ -3,6 +3,11 @@
|
||||
import java.util.Iterator;
|
||||
@@ -4,6 +4,11 @@
|
||||
import java.util.List;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
||||
@@ -12,7 +12,7 @@
|
||||
public class TileEntityChest extends TileEntityLootable implements ITickable, IInventory {
|
||||
|
||||
private ItemStack[] items = new ItemStack[27];
|
||||
@@ -20,6 +25,31 @@
|
||||
@@ -21,6 +26,31 @@
|
||||
|
||||
public TileEntityChest() {}
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
public TileEntityChest(BlockChest.Type blockchest_type) {
|
||||
this.q = blockchest_type;
|
||||
}
|
||||
@@ -118,10 +148,11 @@
|
||||
@@ -123,10 +153,11 @@
|
||||
}
|
||||
|
||||
public int getMaxStackSize() {
|
||||
@@ -57,7 +57,7 @@
|
||||
return this.world.getTileEntity(this.position) != this ? false : entityhuman.e((double) this.position.getX() + 0.5D, (double) this.position.getY() + 0.5D, (double) this.position.getZ() + 0.5D) <= 64.0D;
|
||||
}
|
||||
|
||||
@@ -297,9 +328,21 @@
|
||||
@@ -303,9 +334,21 @@
|
||||
if (this.l < 0) {
|
||||
this.l = 0;
|
||||
}
|
||||
@@ -79,7 +79,7 @@
|
||||
this.world.applyPhysics(this.position, this.getBlock());
|
||||
this.world.applyPhysics(this.position.down(), this.getBlock());
|
||||
}
|
||||
@@ -308,8 +351,20 @@
|
||||
@@ -314,8 +357,20 @@
|
||||
|
||||
public void closeContainer(EntityHuman entityhuman) {
|
||||
if (!entityhuman.isSpectator() && this.getBlock() instanceof BlockChest) {
|
||||
@@ -100,7 +100,7 @@
|
||||
this.world.applyPhysics(this.position, this.getBlock());
|
||||
this.world.applyPhysics(this.position.down(), this.getBlock());
|
||||
}
|
||||
@@ -366,6 +421,13 @@
|
||||
@@ -372,6 +427,13 @@
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user