mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 18:45:54 +01:00
12 lines
707 B
Diff
12 lines
707 B
Diff
--- a/net/minecraft/server/MobSpawnerPatrol.java
|
|
+++ b/net/minecraft/server/MobSpawnerPatrol.java
|
|
@@ -96,7 +96,7 @@
|
|
|
|
entitymonsterpatrolling.setPosition((double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ());
|
|
entitymonsterpatrolling.prepare(world, world.getDamageScaler(blockposition), EnumMobSpawn.PATROL, (GroupDataEntity) null, (NBTTagCompound) null);
|
|
- world.addEntity(entitymonsterpatrolling);
|
|
+ world.addEntity(entitymonsterpatrolling, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.PATROL); // CraftBukkit
|
|
return true;
|
|
} else {
|
|
return false;
|