Skip to content

Fix drunk effect and puke tasks on Folia - #227

Open
Minecraft0122 wants to merge 1 commit into
BreweryTeam:masterfrom
Minecraft0122:codex/fix-folia-drunk-effects
Open

Fix drunk effect and puke tasks on Folia#227
Minecraft0122 wants to merge 1 commit into
BreweryTeam:masterfrom
Minecraft0122:codex/fix-folia-drunk-effects

Conversation

@Minecraft0122

Copy link
Copy Markdown

Summary

  • move each online player's periodic drunk processing from the global scheduler to their entity scheduler
  • give every puking player an independent entity-bound repeating task
  • prevent one player's region thread from applying effects or spawning puke items for players in other regions
  • cancel each task independently when its player becomes invalid or its item count is exhausted

This fixes the current versions of the cross-thread paths reported in #94.

Verification

  • ./gradlew compileJava

Closes #94.

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.

Folia issue

1 participant