Move patches to unapplied
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
--- a/net/minecraft/world/effect/InfestedMobEffect.java
|
||||
+++ b/net/minecraft/world/effect/InfestedMobEffect.java
|
||||
@@ -48,7 +48,11 @@
|
||||
|
||||
entitysilverfish.moveTo(x, y, z, world.getRandom().nextFloat() * 360.0F, 0.0F);
|
||||
entitysilverfish.setDeltaMovement(new Vec3(vector3f));
|
||||
- world.addFreshEntity(entitysilverfish);
|
||||
+ // CraftBukkit start
|
||||
+ if (!world.addFreshEntity(entitysilverfish, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.POTION_EFFECT)) {
|
||||
+ return;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
entitysilverfish.playSound(SoundEvents.SILVERFISH_HURT);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user