Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-25 15:50:06 +01:00
16 Zeilen
774 B
Diff
16 Zeilen
774 B
Diff
|
--- a/net/minecraft/server/ItemGoldenApple.java
|
||
|
+++ b/net/minecraft/server/ItemGoldenApple.java
|
||
|
@@ -8,8 +8,10 @@
|
||
|
|
||
|
protected void a(ItemStack itemstack, World world, EntityHuman entityhuman) {
|
||
|
if (!world.isClientSide) {
|
||
|
- entityhuman.addEffect(new MobEffect(MobEffects.REGENERATION, 100, 1));
|
||
|
- entityhuman.addEffect(new MobEffect(MobEffects.ABSORBTION, 2400, 0));
|
||
|
+ // CraftBukkit start
|
||
|
+ entityhuman.addEffect(new MobEffect(MobEffects.REGENERATION, 100, 1), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD);
|
||
|
+ entityhuman.addEffect(new MobEffect(MobEffects.ABSORBTION, 2400, 0), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD);
|
||
|
+ // CraftBukkit end
|
||
|
}
|
||
|
|
||
|
}
|