shire fix

This commit is contained in:
Player Name 2026-06-30 20:07:29 +02:00
parent d3be31b5fb
commit 38ec74d178
2 changed files with 6 additions and 13 deletions

View file

@ -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;
}
}
}

View file

@ -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))
}
}