Repackage NMS

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-03-16 09:00:00 +11:00
parent 18496e998f
commit 9da047989c
968 changed files with 5448 additions and 5050 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/server/ContainerAnvil.java
+++ b/net/minecraft/server/ContainerAnvil.java
@@ -6,12 +6,20 @@
--- a/net/minecraft/world/inventory/ContainerAnvil.java
+++ b/net/minecraft/world/inventory/ContainerAnvil.java
@@ -19,12 +19,20 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -21,7 +21,7 @@
public ContainerAnvil(int i, PlayerInventory playerinventory) {
this(i, playerinventory, ContainerAccess.a);
@@ -85,7 +93,7 @@
@@ -98,7 +106,7 @@
byte b1 = 0;
if (itemstack.isEmpty()) {
@@ -30,7 +30,7 @@
this.levelCost.set(0);
} else {
ItemStack itemstack1 = itemstack.cloneItemStack();
@@ -103,7 +111,7 @@
@@ -116,7 +124,7 @@
if (itemstack1.e() && itemstack1.getItem().a(itemstack, itemstack2)) {
k = Math.min(itemstack1.getDamage(), itemstack1.h() / 4);
if (k <= 0) {
@@ -39,7 +39,7 @@
this.levelCost.set(0);
return;
}
@@ -118,7 +126,7 @@
@@ -131,7 +139,7 @@
this.h = i1;
} else {
if (!flag && (itemstack1.getItem() != itemstack2.getItem() || !itemstack1.e())) {
@@ -48,7 +48,7 @@
this.levelCost.set(0);
return;
}
@@ -208,7 +216,7 @@
@@ -221,7 +229,7 @@
}
if (flag2 && !flag1) {
@@ -57,7 +57,7 @@
this.levelCost.set(0);
return;
}
@@ -232,11 +240,11 @@
@@ -245,11 +253,11 @@
itemstack1 = ItemStack.b;
}
@@ -72,7 +72,7 @@
itemstack1 = ItemStack.b;
}
@@ -255,7 +263,7 @@
@@ -268,7 +276,7 @@
EnchantmentManager.a(map, itemstack1);
}
@@ -81,7 +81,7 @@
this.c();
}
}
@@ -278,4 +286,18 @@
@@ -291,4 +299,18 @@
this.e();
}