Skip to content

Release 1.28.3#272

Merged
tastybento merged 6 commits into
masterfrom
develop
Jun 29, 2026
Merged

Release 1.28.3#272
tastybento merged 6 commits into
masterfrom
develop

Conversation

@tastybento

Copy link
Copy Markdown
Member

Release 1.28.3 — merges develop into master.

Changes since 1.28.2

  • Fix entity counts drifting after server restart (Fix entity counts drifting after server restart #270) — entityIslandMap was in-memory only and lost on restart; entities reloaded from chunks never re-entered it, so off-island deaths/despawns failed to decrement. A new EntityAddToWorldEvent handler repopulates the map on chunk/server load.
  • Evict entityIslandMap on chunk unload + tests (Evict entityIslandMap on chunk unload + tests for restart-drift fix #271) — follow-up: now that the map is rebuilt on reload, entries are dropped on chunk unload to prevent unbounded growth; also removes a no-op ignoreCancelled and adds JUnit coverage for the new handler and the restart-drift regression.
  • Bump version to 1.28.3.

🤖 Generated with Claude Code

daniel-skopek and others added 6 commits June 29, 2026 03:19
Fix entity counts drifting after server restart
…h tests

Follow-up to #270. Now that onEntityAddToWorld re-populates entityIslandMap
on chunk reload, entries can safely be dropped on chunk unload — previously
they were retained because nothing rebuilt them, which (after #270 mapped
every loaded entity) let the map grow unbounded for entities that never
reload. onEntityRemove now removes the UUID on the UNLOAD cause.

Also drops the no-op ignoreCancelled on the onEntityAddToWorld handler
(EntityAddToWorldEvent is not Cancellable) and adds JUnit coverage for the
new handler and the eviction:
- map population for loaded living entities
- non-tracked entities, non-game-mode worlds and spawn islands skipped
- already-mapped entities skipped without a redundant getIslandAt lookup
- UNLOAD evicts the mapping without decrementing the count
- a reloaded entity that dies off-island still decrements (the #270 bug)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Evict entityIslandMap on chunk unload + tests for restart-drift fix
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@tastybento tastybento merged commit 4273872 into master Jun 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants