3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00
Paper/nms-patches/RegionLimitedWorldAccess.patch

17 Zeilen
608 B
Diff

2018-07-15 02:00:00 +02:00
--- a/net/minecraft/server/RegionLimitedWorldAccess.java
+++ b/net/minecraft/server/RegionLimitedWorldAccess.java
2019-12-10 23:00:00 +01:00
@@ -239,6 +239,13 @@
2018-07-15 02:00:00 +02:00
2019-04-23 04:00:00 +02:00
@Override
2018-07-15 02:00:00 +02:00
public boolean addEntity(Entity entity) {
2019-04-23 04:00:00 +02:00
+ // CraftBukkit start
2018-07-15 02:00:00 +02:00
+ 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
2019-12-10 23:00:00 +01:00
int i = MathHelper.floor(entity.locX() / 16.0D);
int j = MathHelper.floor(entity.locZ() / 16.0D);
2018-07-15 02:00:00 +02:00