mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-31 04:13:51 -07:00
@@ -1,12 +1,12 @@
|
||||
--- a/net/minecraft/world/effect/InfestedMobEffect.java
|
||||
+++ b/net/minecraft/world/effect/InfestedMobEffect.java
|
||||
@@ -47,7 +47,11 @@
|
||||
@@ -48,7 +48,11 @@
|
||||
|
||||
entitysilverfish.moveTo(d0, d1, d2, world.getRandom().nextFloat() * 360.0F, 0.0F);
|
||||
entitysilverfish.moveTo(d0, d1, d2, worldserver.getRandom().nextFloat() * 360.0F, 0.0F);
|
||||
entitysilverfish.setDeltaMovement(new Vec3D(vector3f));
|
||||
- world.addFreshEntity(entitysilverfish);
|
||||
- worldserver.addFreshEntity(entitysilverfish);
|
||||
+ // CraftBukkit start
|
||||
+ if (!world.addFreshEntity(entitysilverfish, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.POTION_EFFECT)) {
|
||||
+ if (!worldserver.addFreshEntity(entitysilverfish, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.POTION_EFFECT)) {
|
||||
+ return;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
|
Reference in New Issue
Block a user