mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-24 11:55:13 -06:00
shire fix
This commit is contained in:
parent
d3be31b5fb
commit
38ec74d178
2 changed files with 6 additions and 13 deletions
|
|
@ -411,16 +411,12 @@ public class RegionChunk {
|
|||
}
|
||||
}
|
||||
}
|
||||
// Dynamic regions (POHs etc.) deliver items once via add(GroundItem) and the client retains them across scene rebuilds;
|
||||
// re-sending here would duplicate them (the client doesn't de-dup). Static regions still need it for chunks entering view.
|
||||
if (!(getRegion() instanceof DynamicRegion)) {
|
||||
ArrayList<GroundItem> totalItems = drawItems(items, player);
|
||||
for (GroundItem item : totalItems) {
|
||||
if (item != null && item.isActive() && item.getLocation() != null) {
|
||||
if (!item.isPrivate() || item.droppedBy(player)) {
|
||||
ConstructGroundItem.write(buffer, item);
|
||||
updated = true;
|
||||
}
|
||||
ArrayList<GroundItem> totalItems = drawItems(items, player);
|
||||
for (GroundItem item : totalItems) {
|
||||
if (item != null && item.isActive() && item.getLocation() != null) {
|
||||
if (!item.isPrivate() || item.droppedBy(player)) {
|
||||
ConstructGroundItem.write(buffer, item);
|
||||
updated = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,9 +51,6 @@ object MapChunkRenderer {
|
|||
updated.add(previous)
|
||||
continue
|
||||
}
|
||||
if (previous.region is DynamicRegion) {
|
||||
continue //dynamic regions do not need a clear packet and briefly flash their cached states (e.g. POH with only hotspots) if you do send one
|
||||
}
|
||||
PacketRepository.send(ClearRegionChunk::class.java, ClearChunkContext(player, previous))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue