diff options
Diffstat (limited to 'nms-patches/ContainerAnvil.patch')
-rw-r--r-- | nms-patches/ContainerAnvil.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nms-patches/ContainerAnvil.patch b/nms-patches/ContainerAnvil.patch index 55856177..f18c3171 100644 --- a/nms-patches/ContainerAnvil.patch +++ b/nms-patches/ContainerAnvil.patch @@ -1,6 +1,6 @@ --- a/net/minecraft/server/ContainerAnvil.java +++ b/net/minecraft/server/ContainerAnvil.java -@@ -6,6 +6,12 @@ +@@ -7,6 +7,12 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -13,7 +13,7 @@ public class ContainerAnvil extends Container { private static final Logger f = LogManager.getLogger(); -@@ -22,8 +28,13 @@ +@@ -23,8 +29,13 @@ private int k; private String l; private final EntityHuman m; @@ -27,7 +27,7 @@ this.j = blockposition; this.i = world; this.m = entityhuman; -@@ -109,7 +120,7 @@ +@@ -110,7 +121,7 @@ byte b1 = 0; if (itemstack == null) { @@ -36,7 +36,7 @@ this.a = 0; } else { ItemStack itemstack1 = itemstack.cloneItemStack(); -@@ -127,7 +138,7 @@ +@@ -128,7 +139,7 @@ if (itemstack1.e() && itemstack1.getItem().a(itemstack, itemstack2)) { k = Math.min(itemstack1.h(), itemstack1.j() / 4); if (k <= 0) { @@ -45,7 +45,7 @@ this.a = 0; return; } -@@ -142,7 +153,7 @@ +@@ -143,7 +154,7 @@ this.k = l; } else { if (!flag && (itemstack1.getItem() != itemstack2.getItem() || !itemstack1.e())) { @@ -54,7 +54,7 @@ this.a = 0; return; } -@@ -269,7 +280,7 @@ +@@ -270,7 +281,7 @@ EnchantmentManager.a(map, itemstack1); } @@ -63,7 +63,7 @@ this.b(); } } -@@ -294,6 +305,7 @@ +@@ -295,6 +306,7 @@ } public boolean a(EntityHuman entityhuman) { @@ -71,7 +71,7 @@ return this.i.getType(this.j).getBlock() != Blocks.ANVIL ? false : entityhuman.e((double) this.j.getX() + 0.5D, (double) this.j.getY() + 0.5D, (double) this.j.getZ() + 0.5D) <= 64.0D; } -@@ -350,6 +362,20 @@ +@@ -352,6 +364,20 @@ this.e(); } |