PaperMC/paper-server/nms-patches/net/minecraft/world/level/IWorldWriter.patch

14 lines
393 B
Diff
Raw Normal View History

2021-03-15 23:00:00 +01:00
--- a/net/minecraft/world/level/IWorldWriter.java
+++ b/net/minecraft/world/level/IWorldWriter.java
@@ -28,4 +28,10 @@
default boolean addEntity(Entity entity) {
return false;
}
+
+ // CraftBukkit start
+ default boolean addEntity(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) {
+ return false;
+ }
+ // CraftBukkit end
}