13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/net/minecraft/server/level/RegionLimitedWorldAccess.patch

17 Zeilen
602 B
Diff

2021-03-15 23:00:00 +01:00
--- a/net/minecraft/server/level/RegionLimitedWorldAccess.java
+++ b/net/minecraft/server/level/RegionLimitedWorldAccess.java
@@ -308,6 +308,13 @@
@Override
public boolean addEntity(Entity entity) {
+ // CraftBukkit start
+ return addEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.DEFAULT);
+ }
+
+ @Override
+ public boolean addEntity(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) {
+ // CraftBukkit end
int i = SectionPosition.a(entity.cW());
int j = SectionPosition.a(entity.dc());