PaperMC/paper-server/patches/sources/net/minecraft/world/effect/OozingMobEffect.java.patch
2024-12-14 13:12:42 -08:00

11 lines
463 B
Diff

--- a/net/minecraft/world/effect/OozingMobEffect.java
+++ b/net/minecraft/world/effect/OozingMobEffect.java
@@ -49,7 +_,7 @@
if (slime != null) {
slime.setSize(2, true);
slime.moveTo(x, y, z, level.getRandom().nextFloat() * 360.0F, 0.0F);
- level.addFreshEntity(slime);
+ level.addFreshEntity(slime, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.POTION_EFFECT); // CraftBukkit
}
}