@@ -12,10 +12,10 @@
|
||||
class SaturationMobEffect extends InstantMobEffect {
|
||||
|
||||
protected SaturationMobEffect(MobEffectInfo mobeffectinfo, int i) {
|
||||
@@ -15,7 +20,15 @@
|
||||
if (!entityliving.level().isClientSide && entityliving instanceof EntityHuman) {
|
||||
EntityHuman entityhuman = (EntityHuman) entityliving;
|
||||
|
||||
@@ -12,7 +17,15 @@
|
||||
@Override
|
||||
public boolean applyEffectTick(EntityLiving entityliving, int i) {
|
||||
if (!entityliving.level().isClientSide && entityliving instanceof EntityHuman entityhuman) {
|
||||
- entityhuman.getFoodData().eat(i + 1, 1.0F);
|
||||
+ // CraftBukkit start
|
||||
+ int oldFoodLevel = entityhuman.getFoodData().foodLevel;
|
||||
@@ -28,4 +28,4 @@
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user