Paper/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
2019-12-10 23:00:00 +01:00
@@ -17,4 +17,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
}