Skip to content

🔧 chore(listener): register BlockDataListener in ListenerManager#332

Merged
Keviro merged 4 commits intoversion/26.1from
fix/fix-block-data-listene
May 1, 2026
Merged

🔧 chore(listener): register BlockDataListener in ListenerManager#332
Keviro merged 4 commits intoversion/26.1from
fix/fix-block-data-listene

Conversation

@TheBjoRedCraft
Copy link
Copy Markdown
Member

  • add BlockDataListener registration in ListenerManager
  • remove unnecessary whitespace in BlockDataListener

- add BlockDataListener registration in ListenerManager
- remove unnecessary whitespace in BlockDataListener
@TheBjoRedCraft TheBjoRedCraft self-assigned this May 1, 2026
Copilot AI review requested due to automatic review settings May 1, 2026 20:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Registers the BlockDataListener in the Paper server ListenerManager so block PDC cleanup logic is actually active at runtime, and removes a stray whitespace line in the listener implementation.

Changes:

  • Register BlockDataListener during listener bootstrap in ListenerManager.
  • Remove unnecessary whitespace in BlockDataListener.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
surf-api-paper/surf-api-paper-server/src/main/kotlin/dev/slne/surf/api/paper/server/listener/ListenerManager.kt Adds BlockDataListener to the listener registration flow.
surf-api-paper/surf-api-paper-server/src/main/kotlin/dev/slne/surf/api/paper/server/impl/pdc/block/BlockDataListener.kt Removes an unnecessary blank/whitespace line in the object body.

Copy link
Copy Markdown
Contributor

@twisti-dev twisti-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump version

…ement

- refactor handlePiston method to use a more efficient data structure for persistent data
- update data copying logic to handle various PersistentDataType cases
@Keviro Keviro merged commit 99d77dd into version/26.1 May 1, 2026
6 checks passed
@Keviro Keviro deleted the fix/fix-block-data-listene branch May 1, 2026 23:20
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.

4 participants