Update to Minecraft 1.13.1

This commit is contained in:
md_5
2018-08-26 12:00:00 +10:00
parent 162bda93ff
commit ce1af0c348
182 changed files with 1891 additions and 1879 deletions

View File

@@ -54,7 +54,7 @@
@@ -184,7 +208,7 @@
ItemStack itemstack = this.getEquipment(EnumItemSlot.HEAD);
if (itemstack.getItem() == Items.TURTLE_HELMET && !this.a(TagsFluid.a)) {
if (itemstack.getItem() == Items.TURTLE_HELMET && !this.a(TagsFluid.WATER)) {
- this.addEffect(new MobEffect(MobEffects.WATER_BREATHING, 200, 0, false, false, true));
+ this.addEffect(new MobEffect(MobEffects.WATER_BREATHING, 200, 0, false, false, true), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.TURTLE_HELMET); // CraftBukkit
}
@@ -215,7 +215,7 @@
if (!this.isInvulnerable(damagesource)) {
f = this.applyArmorModifier(damagesource, f);
f = this.applyMagicModifier(damagesource, f);
@@ -817,6 +905,7 @@
@@ -823,6 +911,7 @@
}
}
@@ -223,7 +223,7 @@
}
public void openSign(TileEntitySign tileentitysign) {}
@@ -938,8 +1027,15 @@
@@ -944,8 +1033,15 @@
if (entity instanceof EntityLiving) {
f3 = ((EntityLiving) entity).getHealth();
if (j > 0 && !entity.isBurning()) {
@@ -241,10 +241,10 @@
}
}
@@ -970,8 +1066,11 @@
@@ -976,8 +1072,11 @@
EntityLiving entityliving = (EntityLiving) iterator.next();
if (entityliving != this && entityliving != entity && !this.r(entityliving) && this.h(entityliving) < 9.0D) {
if (entityliving != this && entityliving != entity && !this.r(entityliving) && (!(entityliving instanceof EntityArmorStand) || !((EntityArmorStand) entityliving).isMarker()) && this.h(entityliving) < 9.0D) {
+ // CraftBukkit start - Only apply knockback if the damage hits
+ if (entityliving.damageEntity(DamageSource.playerAttack(this).sweep(), f4)) {
entityliving.a(this, 0.4F, (double) MathHelper.sin(this.yaw * 0.017453292F), (double) (-MathHelper.cos(this.yaw * 0.017453292F)));
@@ -254,7 +254,7 @@
}
}
@@ -980,11 +1079,28 @@
@@ -986,11 +1085,28 @@
}
if (entity instanceof EntityPlayer && entity.velocityChanged) {
@@ -283,7 +283,7 @@
}
if (flag2) {
@@ -1033,7 +1149,14 @@
@@ -1039,7 +1155,14 @@
this.a(StatisticList.DAMAGE_DEALT, Math.round(f5 * 10.0F));
if (j > 0) {
@@ -299,7 +299,7 @@
}
if (this.world instanceof WorldServer && f5 > 2.0F) {
@@ -1049,6 +1172,11 @@
@@ -1055,6 +1178,11 @@
if (flag4) {
entity.extinguish();
}
@@ -311,7 +311,7 @@
}
}
@@ -1145,6 +1273,20 @@
@@ -1151,6 +1279,20 @@
this.stopRiding();
}
@@ -330,9 +330,9 @@
+ // CraftBukkit end
+
this.releaseShoulderEntities();
this.a(StatisticList.CUSTOM.b(StatisticList.n));
this.a(StatisticList.CUSTOM.b(StatisticList.TIME_SINCE_REST));
this.setSize(0.2F, 0.2F);
@@ -1206,6 +1348,23 @@
@@ -1212,6 +1354,23 @@
this.world.everyoneSleeping();
}
@@ -356,7 +356,7 @@
this.sleepTicks = flag ? 0 : 100;
if (flag2) {
this.setRespawnPosition(this.bedPosition, false);
@@ -1257,9 +1416,11 @@
@@ -1263,9 +1422,11 @@
if (blockposition != null) {
this.e = blockposition;
this.f = flag;
@@ -368,7 +368,7 @@
}
}
@@ -1325,7 +1486,11 @@
@@ -1331,7 +1492,11 @@
this.motY = d3 * 0.6D;
this.aU = f3;
this.fallDistance = 0.0F;
@@ -381,7 +381,7 @@
} else {
super.a(f, f1, f2);
}
@@ -1636,13 +1801,17 @@
@@ -1631,13 +1796,17 @@
}
protected void releaseShoulderEntities() {
@@ -404,7 +404,7 @@
if (!this.world.isClientSide && !nbttagcompound.isEmpty()) {
Entity entity = EntityTypes.a(nbttagcompound, this.world);
@@ -1651,9 +1820,10 @@
@@ -1646,9 +1815,10 @@
}
entity.setPosition(this.locX, this.locY + 0.699999988079071D, this.locZ);
@@ -416,7 +416,7 @@
}
public abstract boolean isSpectator();
@@ -1864,7 +2034,7 @@
@@ -1859,7 +2029,7 @@
return entitymonster.c(this.a);
}