Merge branch 'master' of github.com:Akarin-project/Paper

This commit is contained in:
Sotr
2019-03-24 18:18:54 +08:00
7 changed files with 38 additions and 7 deletions

View File

@@ -1089,6 +1089,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);
}