PaperMC/paper-server/patches/sources/net/minecraft/world/level/LevelWriter.java.patch

14 lines
401 B
Diff
Raw Normal View History

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