Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 20:40:07 +01:00
17 Zeilen
608 B
Diff
17 Zeilen
608 B
Diff
--- a/net/minecraft/server/RegionLimitedWorldAccess.java
|
|
+++ b/net/minecraft/server/RegionLimitedWorldAccess.java
|
|
@@ -233,6 +233,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 = MathHelper.floor(entity.locX() / 16.0D);
|
|
int j = MathHelper.floor(entity.locZ() / 16.0D);
|
|
|