Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
12 Zeilen
743 B
Diff
12 Zeilen
743 B
Diff
--- a/net/minecraft/server/MobSpawnerPatrol.java
|
|
+++ b/net/minecraft/server/MobSpawnerPatrol.java
|
|
@@ -102,7 +102,7 @@
|
|
|
|
entitymonsterpatrolling.setPosition((double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ());
|
|
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
|
|
return true;
|
|
} else {
|
|
return false;
|