mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
43702a9e10
By: md_5 <git@md-5.net>
17 lines
667 B
Diff
17 lines
667 B
Diff
--- a/net/minecraft/server/level/RegionLimitedWorldAccess.java
|
|
+++ b/net/minecraft/server/level/RegionLimitedWorldAccess.java
|
|
@@ -319,6 +319,13 @@
|
|
|
|
@Override
|
|
public boolean addFreshEntity(Entity entity) {
|
|
+ // CraftBukkit start
|
|
+ return addFreshEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.DEFAULT);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean addFreshEntity(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) {
|
|
+ // CraftBukkit end
|
|
int i = SectionPosition.blockToSectionCoord(entity.getBlockX());
|
|
int j = SectionPosition.blockToSectionCoord(entity.getBlockZ());
|
|
|