2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/server/level/RegionLimitedWorldAccess.java
|
|
|
|
+++ b/net/minecraft/server/level/RegionLimitedWorldAccess.java
|
2021-11-21 23:00:00 +01:00
|
|
|
@@ -319,6 +319,13 @@
|
2018-07-15 02:00:00 +02:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|
2021-11-21 23:00:00 +01:00
|
|
|
public boolean addFreshEntity(Entity entity) {
|
2019-04-23 04:00:00 +02:00
|
|
|
+ // CraftBukkit start
|
2021-11-21 23:00:00 +01:00
|
|
|
+ return addFreshEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.DEFAULT);
|
2018-07-15 02:00:00 +02:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2021-11-21 23:00:00 +01:00
|
|
|
+ public boolean addFreshEntity(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) {
|
2018-07-15 02:00:00 +02:00
|
|
|
+ // CraftBukkit end
|
2021-11-21 23:00:00 +01:00
|
|
|
int i = SectionPosition.blockToSectionCoord(entity.getBlockX());
|
|
|
|
int j = SectionPosition.blockToSectionCoord(entity.getBlockZ());
|
2018-07-15 02:00:00 +02:00
|
|
|
|