Skip to content

Avoid recursion in delayed entity scheduling - #115

Merged
BenCodez merged 1 commit into
mainfrom
vp-work/issue1725-delayed-entity-scheduling
Oct 18, 2026
Merged

BenCodez merged 1 commit into
mainfrom
vp-work/issue1725-delayed-entity-scheduling

Conversation

@BenCodez

Copy link
Copy Markdown
Owner

Delayed entity callbacks on Spigot can recurse through the FoliaLib 0.3.4 entity-delay overloads and overflow the stack. Route non-Folia callbacks through the existing delayed main-thread scheduler, preserving seconds-to-ticks conversion, invalid-entity admission and the Folia entity scheduler. Public scheduler signatures remain unchanged; no FoliaLib upgrade is introduced.

Related: BenCodez/VotingPlugin#1725.

Validation on this source:

  • Seven focused scheduler regressions pass, including the actual legacy Spigot backend, null/invalid entities, delay conversion, native rejection and callback failures.
  • Full producer package: 473 passed, one optional external-broker test skipped; full/shared artifacts inspected and public descriptors unchanged.
  • VotingPlugin package against the candidate producer: 2,585 unit tests passed, one skipped, and six packaged-artifact checks passed, including the packaged game-mode listener.
  • Independent read-only review completed with no findings. Folia dispatch is mock-tested; no live server test was run.

Consumers need the corrected SimpleAPI artifact published through the normal dependency workflow before the fix is available in their ordinary builds.

Use the normal delayed scheduler on non-Folia servers while preserving the entity dispatch on Folia. Cover delay units, invalid entities, native rejection and callback execution.
@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 484b7871-b68e-42b7-b6fd-7330f9602220
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T00:19:17.714694Z 2853038 PR opened
🔒 Security Review ✅ Completed 2026-10-18T00:19:04.721797Z 2853038 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@BenCodez
BenCodez merged commit b6c4f9b into main Oct 18, 2026
5 checks passed
@BenCodez
BenCodez deleted the vp-work/issue1725-delayed-entity-scheduling branch October 18, 2026 00: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.

1 participant