@@ -1,7 +1,7 @@
|
||||
--- a/net/minecraft/server/MobEffectList.java
|
||||
+++ b/net/minecraft/server/MobEffectList.java
|
||||
@@ -8,6 +8,11 @@
|
||||
import java.util.function.Supplier;
|
||||
@@ -7,6 +7,11 @@
|
||||
import java.util.Map.Entry;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
+// CraftBukkit start
|
||||
@@ -12,7 +12,7 @@
|
||||
public class MobEffectList {
|
||||
|
||||
private final Map<IAttribute, AttributeModifier> a = Maps.newHashMap();
|
||||
@@ -25,7 +30,7 @@
|
||||
@@ -24,7 +29,7 @@
|
||||
}
|
||||
|
||||
public static int getId(MobEffectList mobeffectlist) {
|
||||
@@ -21,7 +21,7 @@
|
||||
}
|
||||
|
||||
protected MobEffectList(boolean flag, int i) {
|
||||
@@ -47,11 +52,11 @@
|
||||
@@ -46,11 +51,11 @@
|
||||
public void tick(EntityLiving entityliving, int i) {
|
||||
if (this == MobEffects.REGENERATION) {
|
||||
if (entityliving.getHealth() < entityliving.getMaxHealth()) {
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
} else if (this == MobEffects.WITHER) {
|
||||
entityliving.damageEntity(DamageSource.WITHER, 1.0F);
|
||||
@@ -59,14 +64,25 @@
|
||||
@@ -58,14 +63,25 @@
|
||||
((EntityHuman) entityliving).applyExhaustion(0.005F * (float) (i + 1));
|
||||
} else if (this == MobEffects.SATURATION && entityliving instanceof EntityHuman) {
|
||||
if (!entityliving.world.isClientSide) {
|
||||
@@ -63,7 +63,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -87,7 +103,7 @@
|
||||
@@ -86,7 +102,7 @@
|
||||
}
|
||||
} else {
|
||||
j = (int) (d0 * (double) (4 << i) + 0.5D);
|
||||
@@ -72,7 +72,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -216,6 +232,11 @@
|
||||
@@ -215,6 +231,11 @@
|
||||
a(28, "slow_falling", (new MobEffectList(false, 16773073)).b(8, 0).l());
|
||||
a(29, "conduit_power", (new MobEffectList(false, 1950417)).b(9, 0).l());
|
||||
a(30, "dolphins_grace", (new MobEffectList(false, 8954814)).b(10, 0).l());
|
||||
|
||||
Reference in New Issue
Block a user