Upstream Paper

This commit is contained in:
Sotr
2019-03-24 18:17:28 +08:00
parent 6498e68a50
commit 8c772dd85f
7 changed files with 38 additions and 7 deletions

View File

@@ -1084,6 +1084,7 @@ public abstract class World implements IEntityAccess, GeneratorAccess, IIBlockAc
public boolean addEntity(Entity entity, SpawnReason spawnReason) { // Changed signature, added SpawnReason
// Paper start
if (entity.spawnReason == null) entity.spawnReason = spawnReason;
if (regionLimited != null) {
return regionLimited.addEntity(entity, spawnReason);
}