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 final String version = "22w10b";
|
||||
public static final String version = "22w10c";
|
||||
public static final String mainMenuString = "eaglercraft " + version;
|
||||
|
||||
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();
|
||||
PotionEffect var3 = (PotionEffect) this.activePotionsMap.get(var2);
|
||||
|
||||
if (var3.onUpdate(this)) {
|
||||
if (var3.onUpdate(this) && var3.getDuration() % 600 == 0) {
|
||||
this.onChangedPotionEffect(var3);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -222,6 +222,8 @@ public abstract class EntityPlayer extends EntityLiving implements ICommandSende
|
|||
}
|
||||
|
||||
super.onUpdate();
|
||||
|
||||
--this.itemInUseCount;
|
||||
|
||||
if (this.isBurning() && this.capabilities.disableDamage) {
|
||||
this.extinguish();
|
||||
|
|
Loading…
Reference in New Issue
Block a user