2019-09-07 08:35:09 +02:00
|
|
|
--- a/net/minecraft/server/MobSpawnerPatrol.java
|
|
|
|
+++ b/net/minecraft/server/MobSpawnerPatrol.java
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -102,7 +102,7 @@
|
2019-09-07 08:35:09 +02:00
|
|
|
|
|
|
|
entitymonsterpatrolling.setPosition((double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ());
|
2020-08-11 23:00:00 +02:00
|
|
|
entitymonsterpatrolling.prepare(worldserver, worldserver.getDamageScaler(blockposition), EnumMobSpawn.PATROL, (GroupDataEntity) null, (NBTTagCompound) null);
|
|
|
|
- worldserver.addAllEntities(entitymonsterpatrolling);
|
|
|
|
+ worldserver.addAllEntities(entitymonsterpatrolling, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.PATROL); // CraftBukkit
|
2019-09-07 08:35:09 +02:00
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|