mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 00:38:46 +00:00
Slight change in logic, we only need to snapshot static objects during a REMOVE update, and any other entities during an ADD update.
This commit is contained in:
@@ -315,7 +315,8 @@ public final class Region {
|
|||||||
updates.get(height).add(message);
|
updates.get(height).add(message);
|
||||||
snapshots.get(height).remove(entity);
|
snapshots.get(height).remove(entity);
|
||||||
|
|
||||||
if (entity.getEntityType() != EntityType.STATIC_OBJECT || type == EntityUpdateType.REMOVE) {
|
if ((entity.getEntityType() == EntityType.STATIC_OBJECT && type == EntityUpdateType.REMOVE) ||
|
||||||
|
(entity.getEntityType() != EntityType.STATIC_OBJECT && type == EntityUpdateType.ADD)) {
|
||||||
snapshots.get(height).put(entity, message);
|
snapshots.get(height).put(entity, message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user