diff options
Diffstat (limited to 'nms-patches/ContainerPlayer.patch')
-rw-r--r-- | nms-patches/ContainerPlayer.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nms-patches/ContainerPlayer.patch b/nms-patches/ContainerPlayer.patch index 7bdf1448..f868d983 100644 --- a/nms-patches/ContainerPlayer.patch +++ b/nms-patches/ContainerPlayer.patch @@ -1,17 +1,17 @@ --- a/net/minecraft/server/ContainerPlayer.java +++ b/net/minecraft/server/ContainerPlayer.java -@@ -1,5 +1,10 @@ +@@ -1,6 +1,10 @@ package net.minecraft.server; + import javax.annotation.Nullable; +// CraftBukkit start +import org.bukkit.craftbukkit.inventory.CraftInventoryCrafting; +import org.bukkit.craftbukkit.inventory.CraftInventoryView; +// CraftBukkit end -+ + public class ContainerPlayer extends Container { - private static final EnumItemSlot[] h = new EnumItemSlot[] { EnumItemSlot.HEAD, EnumItemSlot.CHEST, EnumItemSlot.LEGS, EnumItemSlot.FEET}; -@@ -7,10 +12,20 @@ +@@ -9,10 +13,20 @@ public IInventory resultInventory = new InventoryCraftResult(); public boolean g; private final EntityHuman owner; @@ -32,7 +32,7 @@ this.a((Slot) (new SlotResult(playerinventory.player, this.craftInventory, this.resultInventory, 0, 154, 28))); int i; -@@ -23,7 +38,7 @@ +@@ -25,7 +39,7 @@ } for (i = 0; i < 4; ++i) { @@ -41,7 +41,7 @@ this.a(new Slot(playerinventory, 36 + (3 - i), 8, 8 + i * 18) { public int getMaxStackSize() { -@@ -57,11 +72,22 @@ +@@ -59,11 +73,22 @@ return super.isAllowed(itemstack); } }); @@ -66,7 +66,7 @@ } public void b(EntityHuman entityhuman) { -@@ -143,4 +169,17 @@ +@@ -146,4 +171,17 @@ public boolean a(ItemStack itemstack, Slot slot) { return slot.inventory != this.resultInventory && super.a(itemstack, slot); } |