Move CraftBukkit per-file patches
By: Initial <noreply+automated@papermc.io>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- a/net/minecraft/world/effect/HungerMobEffect.java
|
||||
+++ b/net/minecraft/world/effect/HungerMobEffect.java
|
||||
@@ -13,7 +13,7 @@
|
||||
@Override
|
||||
public boolean applyEffectTick(WorldServer worldserver, EntityLiving entityliving, int i) {
|
||||
if (entityliving instanceof EntityHuman entityhuman) {
|
||||
- entityhuman.causeFoodExhaustion(0.005F * (float) (i + 1));
|
||||
+ entityhuman.causeFoodExhaustion(0.005F * (float) (i + 1), org.bukkit.event.entity.EntityExhaustionEvent.ExhaustionReason.HUNGER_EFFECT); // CraftBukkit - EntityExhaustionEvent
|
||||
}
|
||||
|
||||
return true;
|
||||
Reference in New Issue
Block a user