Upstream Paper
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user