Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
18 Zeilen
641 B
Diff
18 Zeilen
641 B
Diff
--- a/net/minecraft/server/RegionLimitedWorldAccess.java
|
|
+++ b/net/minecraft/server/RegionLimitedWorldAccess.java
|
|
@@ -200,7 +200,14 @@
|
|
this.y(blockposition).e(blockposition);
|
|
}
|
|
|
|
+ // CraftBukkit start
|
|
public boolean addEntity(Entity entity) {
|
|
+ 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);
|
|
|