summaryrefslogtreecommitdiffstats
path: root/nms-patches/WorldServer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/WorldServer.patch')
-rw-r--r--nms-patches/WorldServer.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/WorldServer.patch b/nms-patches/WorldServer.patch
index 37c8b6f0..386a0a48 100644
--- a/nms-patches/WorldServer.patch
+++ b/nms-patches/WorldServer.patch
@@ -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