fixed eating glitch
This commit is contained in:
parent
1232657fa5
commit
93e18d1721
|
@ -4,7 +4,7 @@ public class ConfigConstants {
|
||||||
|
|
||||||
public static boolean profanity = false;
|
public static boolean profanity = false;
|
||||||
|
|
||||||
public static final String version = "22w10b";
|
public static final String version = "22w10c";
|
||||||
public static final String mainMenuString = "eaglercraft " + version;
|
public static final String mainMenuString = "eaglercraft " + version;
|
||||||
|
|
||||||
public static final String forkMe = "https://github.com/LAX1DUDE/eaglercraft";
|
public static final String forkMe = "https://github.com/LAX1DUDE/eaglercraft";
|
||||||
|
|
|
@ -1750,7 +1750,7 @@ public abstract class EntityLiving extends Entity {
|
||||||
Integer var2 = (Integer) var1.next();
|
Integer var2 = (Integer) var1.next();
|
||||||
PotionEffect var3 = (PotionEffect) this.activePotionsMap.get(var2);
|
PotionEffect var3 = (PotionEffect) this.activePotionsMap.get(var2);
|
||||||
|
|
||||||
if (var3.onUpdate(this)) {
|
if (var3.onUpdate(this) && var3.getDuration() % 600 == 0) {
|
||||||
this.onChangedPotionEffect(var3);
|
this.onChangedPotionEffect(var3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -223,6 +223,8 @@ public abstract class EntityPlayer extends EntityLiving implements ICommandSende
|
||||||
|
|
||||||
super.onUpdate();
|
super.onUpdate();
|
||||||
|
|
||||||
|
--this.itemInUseCount;
|
||||||
|
|
||||||
if (this.isBurning() && this.capabilities.disableDamage) {
|
if (this.isBurning() && this.capabilities.disableDamage) {
|
||||||
this.extinguish();
|
this.extinguish();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user