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

@@ -497,7 +497,7 @@
}
}
@@ -1374,6 +1615,13 @@
@@ -1378,6 +1619,13 @@
if (!flag) {
EntityItem entityitem = new EntityItem(this.level, this.locX(), this.locY(), this.locZ(), new ItemStack(Items.WITHER_ROSE));
@@ -511,7 +511,7 @@
this.level.addEntity(entityitem);
}
}
@@ -1393,21 +1641,40 @@
@@ -1397,21 +1645,40 @@
boolean flag = this.lastHurtByPlayerTime > 0;
@@ -555,7 +555,7 @@
}
@@ -1523,9 +1790,14 @@
@@ -1527,9 +1794,14 @@
int i = this.d(f, f1);
if (i > 0) {
@@ -571,7 +571,7 @@
return true;
} else {
return flag;
@@ -1574,7 +1846,7 @@
@@ -1578,7 +1850,7 @@
protected float applyArmorModifier(DamageSource damagesource, float f) {
if (!damagesource.ignoresArmor()) {
@@ -580,7 +580,7 @@
f = CombatMath.a(f, (float) this.getArmorStrength(), (float) this.b(GenericAttributes.ARMOR_TOUGHNESS));
}
@@ -1587,7 +1859,8 @@
@@ -1591,7 +1863,8 @@
} else {
int i;
@@ -590,7 +590,7 @@
i = (this.getEffect(MobEffects.DAMAGE_RESISTANCE).getAmplifier() + 1) * 5;
int j = 25 - i;
float f1 = f * (float) j;
@@ -1618,29 +1891,172 @@
@@ -1622,29 +1895,172 @@
}
}
@@ -773,7 +773,7 @@
}
public CombatTracker getCombatTracker() {
@@ -1661,8 +2077,18 @@
@@ -1665,8 +2081,18 @@
}
public final void setArrowCount(int i) {
@@ -793,7 +793,7 @@
public final int eh() {
return (Integer) this.entityData.get(EntityLiving.DATA_STINGER_COUNT_ID);
@@ -1958,6 +2384,12 @@
@@ -1962,6 +2388,12 @@
public abstract ItemStack getEquipment(EnumItemSlot enumitemslot);
@@ -806,7 +806,7 @@
@Override
public abstract void setSlot(EnumItemSlot enumitemslot, ItemStack itemstack);
@@ -2202,6 +2634,7 @@
@@ -2205,6 +2637,7 @@
}
if (this.onGround && !this.level.isClientSide) {
@@ -814,7 +814,7 @@
this.setFlag(7, false);
}
} else {
@@ -2732,6 +3165,7 @@
@@ -2735,6 +3168,7 @@
}
if (!this.level.isClientSide) {
@@ -822,7 +822,7 @@
this.setFlag(7, flag);
}
@@ -2899,14 +3333,21 @@
@@ -2902,14 +3336,21 @@
@Override
public boolean isInteractable() {
@@ -846,7 +846,7 @@
@Override
protected void velocityChanged() {
this.hurtMarked = this.random.nextDouble() >= this.b(GenericAttributes.KNOCKBACK_RESISTANCE);
@@ -3104,7 +3545,25 @@
@@ -3107,7 +3548,25 @@
} else {
if (!this.useItem.isEmpty() && this.isHandRaised()) {
this.b(this.useItem, 16);
@@ -873,7 +873,7 @@
if (itemstack != this.useItem) {
this.a(enumhand, itemstack);
@@ -3176,6 +3635,12 @@
@@ -3179,6 +3638,12 @@
}
public boolean a(double d0, double d1, double d2, boolean flag) {
@@ -886,7 +886,7 @@
double d3 = this.locX();
double d4 = this.locY();
double d5 = this.locZ();
@@ -3200,16 +3665,41 @@
@@ -3203,16 +3668,41 @@
}
if (flag2) {
@@ -931,7 +931,7 @@
} else {
if (flag) {
world.broadcastEntityEffect(this, (byte) 46);
@@ -3219,7 +3709,7 @@
@@ -3222,7 +3712,7 @@
((EntityCreature) this).getNavigation().o();
}
@@ -940,7 +940,7 @@
}
}
@@ -3302,7 +3792,7 @@
@@ -3305,7 +3795,7 @@
}
public void entityWakeup() {
@@ -949,16 +949,16 @@
World world = this.level;
java.util.Objects.requireNonNull(this.level);
@@ -3334,7 +3824,7 @@
@@ -3337,7 +3827,7 @@
@Nullable
public EnumDirection eW() {
public EnumDirection eX() {
- BlockPosition blockposition = (BlockPosition) this.getBedPosition().orElse((Object) null);
+ BlockPosition blockposition = (BlockPosition) this.getBedPosition().orElse(null); // CraftBukkit - decompile error
return blockposition != null ? BlockBed.a((IBlockAccess) this.level, blockposition) : null;
}
@@ -3383,7 +3873,7 @@
@@ -3386,7 +3876,7 @@
Pair<MobEffect, Float> pair = (Pair) iterator.next();
if (!world.isClientSide && pair.getFirst() != null && world.random.nextFloat() < (Float) pair.getSecond()) {