fixed eating glitch

This commit is contained in:
LAX1DUDE 2022-03-10 14:16:17 -08:00
parent 1232657fa5
commit 93e18d1721
3 changed files with 4 additions and 2 deletions

View File

@ -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";

View File

@ -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);
} }
} }

View File

@ -222,6 +222,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();