PaperMC/nms-patches/IWorldWriter.patch

14 lines
383 B
Diff
Raw Normal View History

2018-07-15 02:00:00 +02:00
--- a/net/minecraft/server/IWorldWriter.java
+++ b/net/minecraft/server/IWorldWriter.java
2020-06-25 02:00:00 +02:00
@@ -25,4 +25,10 @@
2019-04-23 04:00:00 +02:00
default boolean addEntity(Entity entity) {
return false;
}
2018-07-15 02:00:00 +02:00
+
2019-04-23 04:00:00 +02:00
+ // CraftBukkit start
+ default boolean addEntity(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) {
+ return false;
+ }
+ // CraftBukkit end
}