@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/ContainerPlayer.java
|
||||
+++ b/net/minecraft/server/ContainerPlayer.java
|
||||
@@ -1,18 +1,36 @@
|
||||
@@ -1,5 +1,10 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
+// CraftBukkit start
|
||||
@@ -10,15 +10,18 @@
|
||||
+
|
||||
public class ContainerPlayer extends ContainerRecipeBook<InventoryCrafting> {
|
||||
|
||||
private static final String[] d = new String[]{"item/empty_armor_slot_boots", "item/empty_armor_slot_leggings", "item/empty_armor_slot_chestplate", "item/empty_armor_slot_helmet"};
|
||||
private static final EnumItemSlot[] e = new EnumItemSlot[]{EnumItemSlot.HEAD, EnumItemSlot.CHEST, EnumItemSlot.LEGS, EnumItemSlot.FEET};
|
||||
public static final MinecraftKey c = new MinecraftKey("textures/atlas/blocks.png");
|
||||
@@ -10,15 +15,28 @@
|
||||
public static final MinecraftKey h = new MinecraftKey("item/empty_armor_slot_shield");
|
||||
private static final MinecraftKey[] j = new MinecraftKey[]{ContainerPlayer.g, ContainerPlayer.f, ContainerPlayer.e, ContainerPlayer.d};
|
||||
private static final EnumItemSlot[] k = new EnumItemSlot[]{EnumItemSlot.HEAD, EnumItemSlot.CHEST, EnumItemSlot.LEGS, EnumItemSlot.FEET};
|
||||
- private final InventoryCrafting craftInventory = new InventoryCrafting(this, 2, 2);
|
||||
- private final InventoryCraftResult resultInventory = new InventoryCraftResult();
|
||||
+ // CraftBukkit start
|
||||
+ private final InventoryCrafting craftInventory;
|
||||
+ private final InventoryCraftResult resultInventory;
|
||||
+ // CraftBukkit end
|
||||
public final boolean c;
|
||||
public final boolean i;
|
||||
private final EntityHuman owner;
|
||||
+ // CraftBukkit start
|
||||
+ private CraftInventoryView bukkitEntity = null;
|
||||
@@ -27,7 +30,7 @@
|
||||
|
||||
public ContainerPlayer(PlayerInventory playerinventory, boolean flag, EntityHuman entityhuman) {
|
||||
super((Containers) null, 0);
|
||||
this.c = flag;
|
||||
this.i = flag;
|
||||
this.owner = entityhuman;
|
||||
+ // CraftBukkit start
|
||||
+ this.resultInventory = new InventoryCraftResult(); // CraftBukkit - moved to before InventoryCrafting construction
|
||||
@@ -39,7 +42,7 @@
|
||||
this.a((Slot) (new SlotResult(playerinventory.player, this.craftInventory, this.resultInventory, 0, 154, 28)));
|
||||
|
||||
int i;
|
||||
@@ -79,7 +97,7 @@
|
||||
@@ -85,7 +103,7 @@
|
||||
|
||||
@Override
|
||||
public void a(IInventory iinventory) {
|
||||
@@ -48,7 +51,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -182,4 +200,17 @@
|
||||
@@ -188,4 +206,17 @@
|
||||
public int h() {
|
||||
return this.craftInventory.f();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user