PaperMC/nms-patches/WorldGenRegistration.patch

12 lines
649 B
Diff
Raw Normal View History

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/WorldGenRegistration.java
+++ b/net/minecraft/server/WorldGenRegistration.java
2016-11-17 02:41:03 +01:00
@@ -157,7 +157,7 @@
2017-06-08 10:00:00 +02:00
entitywitch.cW();
2016-02-29 22:32:46 +01:00
entitywitch.setPositionRotation((double) i + 0.5D, (double) j, (double) k + 0.5D, 0.0F, 0.0F);
entitywitch.prepare(world.D(new BlockPosition(i, j, k)), (GroupDataEntity) null);
2015-02-26 23:41:06 +01:00
- world.addEntity(entitywitch);
+ world.addEntity(entitywitch, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
}
}