Update to Minecraft 1.16.2

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-08-12 07:00:00 +10:00
parent 5e5f7f19dc
commit 6a9e00d4b6
208 changed files with 2144 additions and 2455 deletions

View File

@@ -15,8 +15,8 @@
+
public class EntityArmorStand extends EntityLiving {
private static final Vector3f bq = new Vector3f(0.0F, 0.0F, 0.0F);
@@ -53,6 +62,13 @@
private static final Vector3f bj = new Vector3f(0.0F, 0.0F, 0.0F);
@@ -55,6 +64,13 @@
this.setPosition(d0, d1, d2);
}
@@ -30,7 +30,7 @@
@Override
public void updateSize() {
double d0 = this.locX();
@@ -381,6 +397,21 @@
@@ -383,6 +399,21 @@
return false;
} else {
ItemStack itemstack2;
@@ -52,7 +52,7 @@
if (entityhuman.abilities.canInstantlyBuild && itemstack1.isEmpty() && !itemstack.isEmpty()) {
itemstack2 = itemstack.cloneItemStack();
@@ -409,12 +440,22 @@
@@ -411,12 +442,22 @@
public boolean damageEntity(DamageSource damagesource, float f) {
if (!this.world.isClientSide && !this.dead) {
if (DamageSource.OUT_OF_WORLD.equals(damagesource)) {
@@ -78,7 +78,7 @@
return false;
} else if (DamageSource.FIRE.equals(damagesource)) {
if (this.isBurning()) {
@@ -439,7 +480,7 @@
@@ -441,7 +482,7 @@
} else if (damagesource.v()) {
this.F();
this.D();
@@ -87,7 +87,7 @@
return flag1;
} else {
long i = this.world.getTime();
@@ -450,7 +491,7 @@
@@ -452,7 +493,7 @@
} else {
this.f(damagesource);
this.D();
@@ -96,7 +96,7 @@
}
return true;
@@ -477,7 +518,7 @@
@@ -479,7 +520,7 @@
f1 -= f;
if (f1 <= 0.5F) {
this.g(damagesource);
@@ -105,7 +105,7 @@
} else {
this.setHealth(f1);
}
@@ -485,13 +526,13 @@
@@ -487,13 +528,13 @@
}
private void f(DamageSource damagesource) {
@@ -121,7 +121,7 @@
ItemStack itemstack;
int i;
@@ -499,7 +540,7 @@
@@ -501,7 +542,7 @@
for (i = 0; i < this.handItems.size(); ++i) {
itemstack = (ItemStack) this.handItems.get(i);
if (!itemstack.isEmpty()) {
@@ -130,7 +130,7 @@
this.handItems.set(i, ItemStack.b);
}
}
@@ -507,10 +548,11 @@
@@ -509,10 +550,11 @@
for (i = 0; i < this.armorItems.size(); ++i) {
itemstack = (ItemStack) this.armorItems.get(i);
if (!itemstack.isEmpty()) {
@@ -143,7 +143,7 @@
}
@@ -611,8 +653,16 @@
@@ -613,8 +655,16 @@
return this.isSmall();
}