@@ -501,12 +501,12 @@
|
||||
}
|
||||
|
||||
- public boolean addEntity(Entity entity) {
|
||||
- return this.i(entity) ? super.addEntity(entity) : false;
|
||||
- return this.j(entity) ? super.addEntity(entity) : false;
|
||||
+ // CraftBukkit start
|
||||
+ public boolean addEntity(Entity entity, SpawnReason spawnReason) { // Changed signature, added SpawnReason
|
||||
+ // World.addEntity(Entity) will call this, and we still want to perform
|
||||
+ // existing entity checking when it's called with a SpawnReason
|
||||
+ return this.i(entity) ? super.addEntity(entity, spawnReason) : false;
|
||||
+ return this.j(entity) ? super.addEntity(entity, spawnReason) : false;
|
||||
}
|
||||
+ // CraftBukkit end
|
||||
|
||||
@@ -514,7 +514,7 @@
|
||||
ArrayList arraylist = Lists.newArrayList(collection);
|
||||
@@ -837,7 +1062,7 @@
|
||||
|
||||
private boolean i(Entity entity) {
|
||||
private boolean j(Entity entity) {
|
||||
if (entity.dead) {
|
||||
- WorldServer.a.warn("Tried to add entity {} but it was marked as removed already", new Object[] { EntityTypes.a(entity)});
|
||||
+ // WorldServer.a.warn("Tried to add entity {} but it was marked as removed already", new Object[] { EntityTypes.a(entity)}); // CraftBukkit
|
||||
|
||||
Reference in New Issue
Block a user