geforkt von Mirrors/Paper
b3a8254758
By: md_5 <git@md-5.net>
17 Zeilen
602 B
Diff
17 Zeilen
602 B
Diff
--- 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());
|
|
|