Update to Minecraft 1.17.1

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-07-07 00:00:00 +10:00
parent 0392f45e9c
commit e8c9836ec9
59 changed files with 428 additions and 492 deletions

View File

@@ -49,7 +49,7 @@
decimalformat.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance(Locale.ROOT));
});
public static final String TAG_ENCH = "Enchantments";
@@ -142,16 +175,30 @@
@@ -140,16 +173,30 @@
this.checkEmpty();
}
@@ -82,7 +82,7 @@
this.getItem().b(this.tag);
}
@@ -159,6 +206,11 @@
@@ -157,6 +204,11 @@
this.setDamage(this.getDamage());
}
@@ -94,7 +94,7 @@
this.checkEmpty();
}
@@ -196,7 +248,7 @@
@@ -194,7 +246,7 @@
return this.getItem() == item;
}
@@ -103,7 +103,7 @@
EntityHuman entityhuman = itemactioncontext.getEntity();
BlockPosition blockposition = itemactioncontext.getClickPosition();
ShapeDetectorBlock shapedetectorblock = new ShapeDetectorBlock(itemactioncontext.getWorld(), blockposition, false);
@@ -204,12 +256,155 @@
@@ -202,12 +254,155 @@
if (entityhuman != null && !entityhuman.getAbilities().mayBuild && !this.b(itemactioncontext.getWorld().r(), shapedetectorblock)) {
return EnumInteractionResult.PASS;
} else {
@@ -260,7 +260,7 @@
return enuminteractionresult;
}
@@ -290,6 +485,21 @@
@@ -288,6 +483,21 @@
}
i -= k;
@@ -282,7 +282,7 @@
if (i <= 0) {
return false;
}
@@ -311,6 +521,11 @@
@@ -309,6 +519,11 @@
if (this.isDamaged(i, t0.getRandom(), t0 instanceof EntityPlayer ? (EntityPlayer) t0 : null)) {
consumer.accept(t0);
Item item = this.getItem();
@@ -294,7 +294,7 @@
this.subtract(1);
if (t0 instanceof EntityHuman) {
@@ -466,6 +681,17 @@
@@ -464,6 +679,17 @@
return this.tag;
}
@@ -312,7 +312,7 @@
public NBTTagCompound getOrCreateTag() {
if (this.tag == null) {
this.setTag(new NBTTagCompound());
@@ -849,6 +1075,12 @@
@@ -844,6 +1070,12 @@
}
public void setRepairCost(int i) {
@@ -325,7 +325,7 @@
this.getOrCreateTag().setInt("RepairCost", i);
}
@@ -898,6 +1130,13 @@
@@ -893,6 +1125,13 @@
nbttaglist.add(nbttagcompound);
}