mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
Use SpawnReason.NATURAL for Phantom spawning
This commit is contained in:
parent
3d7f2f07d5
commit
4b00823222
1 changed files with 11 additions and 0 deletions
11
nms-patches/MobSpawnerPhantom.patch
Normal file
11
nms-patches/MobSpawnerPhantom.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/net/minecraft/server/MobSpawnerPhantom.java
|
||||
+++ b/net/minecraft/server/MobSpawnerPhantom.java
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
entityphantom.setPositionRotation(blockposition1, 0.0F, 0.0F);
|
||||
groupdataentity = entityphantom.prepare(difficultydamagescaler, groupdataentity, (NBTTagCompound) null);
|
||||
- world.addEntity(entityphantom);
|
||||
+ world.addEntity(entityphantom, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NATURAL); // CraftBukkit
|
||||
}
|
||||
|
||||
i += k;
|
Loading…
Reference in a new issue