Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-22 14:28:09 +01:00
814c742554
Discussion ongoing in PR #449
20 Zeilen
1.2 KiB
Diff
20 Zeilen
1.2 KiB
Diff
--- a/net/minecraft/server/ItemGoldenAppleEnchanted.java
|
|
+++ b/net/minecraft/server/ItemGoldenAppleEnchanted.java
|
|
@@ -8,10 +8,12 @@
|
|
|
|
protected void a(ItemStack itemstack, World world, EntityHuman entityhuman) {
|
|
if (!world.isClientSide) {
|
|
- entityhuman.addEffect(new MobEffect(MobEffects.REGENERATION, 400, 1));
|
|
- entityhuman.addEffect(new MobEffect(MobEffects.RESISTANCE, 6000, 0));
|
|
- entityhuman.addEffect(new MobEffect(MobEffects.FIRE_RESISTANCE, 6000, 0));
|
|
- entityhuman.addEffect(new MobEffect(MobEffects.ABSORBTION, 2400, 3));
|
|
+ // CraftBukkit start
|
|
+ entityhuman.addEffect(new MobEffect(MobEffects.REGENERATION, 400, 1), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD);
|
|
+ entityhuman.addEffect(new MobEffect(MobEffects.RESISTANCE, 6000, 0), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD);
|
|
+ entityhuman.addEffect(new MobEffect(MobEffects.FIRE_RESISTANCE, 6000, 0), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD);
|
|
+ entityhuman.addEffect(new MobEffect(MobEffects.ABSORBTION, 2400, 3), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD);
|
|
+ // CraftBukkit end
|
|
}
|
|
|
|
}
|