3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-22 14:28:09 +01:00
Paper/nms-patches/MobSpawnerPhantom.patch

12 Zeilen
786 B
Diff

--- a/net/minecraft/server/MobSpawnerPhantom.java
+++ b/net/minecraft/server/MobSpawnerPhantom.java
2020-06-25 02:00:00 +02:00
@@ -57,7 +57,7 @@
entityphantom.setPositionRotation(blockposition1, 0.0F, 0.0F);
2019-04-23 04:00:00 +02:00
groupdataentity = entityphantom.prepare(worldserver, difficultydamagescaler, EnumMobSpawn.NATURAL, groupdataentity, (NBTTagCompound) null);
2020-08-11 23:00:00 +02:00
- worldserver.addAllEntities(entityphantom);
+ worldserver.addAllEntities(entityphantom, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NATURAL); // CraftBukkit
}
i += k;