@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/inventory/ContainerShulkerBox.java
|
||||
+++ b/net/minecraft/world/inventory/ContainerShulkerBox.java
|
||||
@@ -6,9 +6,28 @@
|
||||
@@ -6,10 +6,29 @@
|
||||
import net.minecraft.world.entity.player.PlayerInventory;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
+
|
||||
public class ContainerShulkerBox extends Container {
|
||||
|
||||
private final IInventory c;
|
||||
private static final int CONTAINER_SIZE = 27;
|
||||
private final IInventory container;
|
||||
+ // CraftBukkit start
|
||||
+ private CraftInventoryView bukkitEntity;
|
||||
+ private PlayerInventory player;
|
||||
@@ -22,17 +23,17 @@
|
||||
+ return bukkitEntity;
|
||||
+ }
|
||||
+
|
||||
+ bukkitEntity = new CraftInventoryView(this.player.player.getBukkitEntity(), new CraftInventory(this.c), this);
|
||||
+ bukkitEntity = new CraftInventoryView(this.player.player.getBukkitEntity(), new CraftInventory(this.container), this);
|
||||
+ return bukkitEntity;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
|
||||
public ContainerShulkerBox(int i, PlayerInventory playerinventory) {
|
||||
this(i, playerinventory, new InventorySubcontainer(27));
|
||||
@@ -18,6 +37,7 @@
|
||||
@@ -19,6 +38,7 @@
|
||||
super(Containers.SHULKER_BOX, i);
|
||||
a(iinventory, 27);
|
||||
this.c = iinventory;
|
||||
this.container = iinventory;
|
||||
+ this.player = playerinventory; // CraftBukkit - save player
|
||||
iinventory.startOpen(playerinventory.player);
|
||||
boolean flag = true;
|
||||
|
||||
Reference in New Issue
Block a user