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

14 lines
400 B
Diff
Raw Normal View History

--- a/net/minecraft/world/level/LevelWriter.java
+++ b/net/minecraft/world/level/LevelWriter.java
2024-12-15 00:42:27 +01:00
@@ -27,4 +_,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
}