Update to Minecraft 1.9.2

By: Thinkofname <thinkofdeath@spigotmc.org>
This commit is contained in:
CraftBukkit/Spigot
2016-03-30 20:50:59 +01:00
parent 8ea7bfcb8c
commit 094f30f26d
30 changed files with 126 additions and 182 deletions

View File

@@ -47,7 +47,7 @@
this.i = true;
this.aL = (float) ((Math.random() + 1.0D) * 0.009999999776482582D);
this.setPosition(this.locX, this.locY, this.locZ);
@@ -125,7 +149,13 @@
@@ -126,7 +150,13 @@
double d1 = Math.min((double) (0.2F + f / 15.0F), 2.5D);
int i = (int) (150.0D * d1);
@@ -62,7 +62,7 @@
}
}
@@ -183,7 +213,11 @@
@@ -188,7 +218,11 @@
this.stopRiding();
}
} else {
@@ -75,7 +75,7 @@
}
if (!this.world.isClientSide) {
@@ -240,6 +274,18 @@
@@ -245,6 +279,18 @@
this.world.methodProfiler.b();
}
@@ -94,7 +94,7 @@
protected void b(BlockPosition blockposition) {
int i = EnchantmentManager.a(Enchantments.j, this);
@@ -255,19 +301,19 @@
@@ -260,19 +306,19 @@
protected void bC() {
++this.deathTicks;
@@ -123,7 +123,7 @@
this.die();
@@ -421,6 +467,17 @@
@@ -426,6 +472,17 @@
}
}
@@ -141,7 +141,7 @@
if (nbttagcompound.hasKeyOfType("Health", 99)) {
this.setHealth(nbttagcompound.getFloat("Health"));
}
@@ -436,9 +493,15 @@
@@ -441,9 +498,15 @@
}
@@ -157,7 +157,7 @@
while (iterator.hasNext()) {
MobEffectList mobeffectlist = (MobEffectList) iterator.next();
MobEffect mobeffect = (MobEffect) this.effects.get(mobeffectlist);
@@ -452,6 +515,16 @@
@@ -457,6 +520,16 @@
this.a(mobeffect, false);
}
}
@@ -174,7 +174,7 @@
if (this.updateEffects) {
if (!this.world.isClientSide) {
@@ -548,6 +621,12 @@
@@ -553,6 +626,12 @@
}
public void addEffect(MobEffect mobeffect) {
@@ -187,7 +187,7 @@
if (this.d(mobeffect)) {
MobEffect mobeffect1 = (MobEffect) this.effects.get(mobeffect.getMobEffect());
@@ -579,6 +658,12 @@
@@ -584,6 +663,12 @@
}
public MobEffect c(MobEffectList mobeffectlist) {
@@ -200,7 +200,7 @@
return (MobEffect) this.effects.remove(mobeffectlist);
}
@@ -618,20 +703,52 @@
@@ -623,20 +708,52 @@
}
@@ -254,7 +254,7 @@
this.datawatcher.set(EntityLiving.HEALTH, Float.valueOf(MathHelper.a(f, 0.0F, this.getMaxHealth())));
}
@@ -647,14 +764,16 @@
@@ -652,14 +769,16 @@
} else if (damagesource.o() && this.hasEffect(MobEffects.FIRE_RESISTANCE)) {
return false;
} else {
@@ -273,7 +273,7 @@
this.k(f);
if (damagesource.a()) {
f = 0.0F;
@@ -673,19 +792,38 @@
@@ -678,19 +797,38 @@
if ((float) this.noDamageTicks > (float) this.maxNoDamageTicks / 2.0F) {
if (f <= this.lastDamage) {
@@ -314,7 +314,7 @@
this.az = 0.0F;
Entity entity = damagesource.getEntity();
@@ -825,6 +963,12 @@
@@ -830,6 +968,12 @@
boolean flag = this.lastDamageByPlayerTime > 0;
this.a(flag, i, damagesource);
@@ -327,7 +327,7 @@
}
}
@@ -912,8 +1056,13 @@
@@ -917,8 +1061,13 @@
int i = MathHelper.f((f - 3.0F - f2) * f1);
if (i > 0) {
@@ -342,21 +342,18 @@
int j = MathHelper.floor(this.locX);
int k = MathHelper.floor(this.locY - 0.20000000298023224D);
int l = MathHelper.floor(this.locZ);
@@ -940,20 +1089,20 @@
@@ -945,8 +1094,8 @@
protected float applyArmorModifier(DamageSource damagesource, float f) {
if (!damagesource.ignoresArmor()) {
- this.damageArmor(f);
- f = CombatMath.a(f, (float) this.getArmorStrength(), (float) this.getAttributeInstance(GenericAttributes.h).getValue());
+ // this.damageArmor(f); // CraftBukkit - Moved into damageEntity0(DamageSource, float)
f = CombatMath.a(f, (float) this.getArmorStrength());
+ f = CombatMath.a(f, (float) this.getArmorStrength());
}
return f;
}
-
protected float applyMagicModifier(DamageSource damagesource, float f) {
if (damagesource.isStarvation()) {
return f;
@@ -958,7 +1107,8 @@
} else {
int i;
@@ -366,7 +363,7 @@
i = (this.getEffect(MobEffects.RESISTANCE).getAmplifier() + 1) * 5;
int j = 25 - i;
float f1 = f * (float) j;
@@ -974,22 +1123,127 @@
@@ -979,22 +1129,127 @@
}
}
@@ -504,7 +501,7 @@
}
public CombatTracker getCombatTracker() {
@@ -1055,6 +1309,7 @@
@@ -1060,6 +1315,7 @@
public AttributeMapBase getAttributeMap() {
if (this.bp == null) {
this.bp = new AttributeMapServer();
@@ -512,7 +509,7 @@
}
return this.bp;
@@ -1329,6 +1584,7 @@
@@ -1334,6 +1590,7 @@
}
if (this.onGround && !this.world.isClientSide) {
@@ -520,7 +517,7 @@
this.setFlag(7, false);
}
} else {
@@ -1689,6 +1945,7 @@
@@ -1694,6 +1951,7 @@
}
if (!this.world.isClientSide) {
@@ -528,7 +525,7 @@
this.setFlag(7, flag);
}
@@ -1702,6 +1959,13 @@
@@ -1707,6 +1965,13 @@
if (!list.isEmpty()) {
for (int i = 0; i < list.size(); ++i) {
Entity entity = (Entity) list.get(i);
@@ -542,7 +539,7 @@
this.C(entity);
}
@@ -1777,11 +2041,11 @@
@@ -1782,11 +2047,11 @@
}
public boolean isInteractable() {
@@ -556,7 +553,7 @@
}
protected void ao() {
@@ -1918,7 +2182,22 @@
@@ -1923,7 +2188,22 @@
protected void v() {
if (this.bm != null && this.cs()) {
this.a(this.bm, 16);