mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 19:12:22 +01:00
12 lines
531 B
Diff
12 lines
531 B
Diff
|
--- a/net/minecraft/world/effect/PoisonMobEffect.java
|
||
|
+++ b/net/minecraft/world/effect/PoisonMobEffect.java
|
||
|
@@ -14,7 +14,7 @@
|
||
|
@Override
|
||
|
public boolean applyEffectTick(ServerLevel world, LivingEntity entity, int amplifier) {
|
||
|
if (entity.getHealth() > 1.0F) {
|
||
|
- entity.hurtServer(world, entity.damageSources().magic(), 1.0F);
|
||
|
+ entity.hurtServer(world, entity.damageSources().poison(), 1.0F); // CraftBukkit - DamageSource.MAGIC -> CraftEventFactory.POISON
|
||
|
}
|
||
|
|
||
|
return true;
|