2019-09-07 08:35:09 +02:00
|
|
|
--- a/net/minecraft/server/MobSpawnerPatrol.java
|
|
|
|
+++ b/net/minecraft/server/MobSpawnerPatrol.java
|
2019-12-10 23:00:00 +01:00
|
|
|
@@ -99,7 +99,7 @@
|
2019-09-07 08:35:09 +02:00
|
|
|
|
|
|
|
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;
|