You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from what i understand its bc the object task always executes on the server AFTER the last await() finishes
it should execute the task then in get it should await and by then the task finishes executing so value isnt null but it never does that until after it finishes awaiting so task.get in getBlockState in Locator class is always null this might be because all the code is running on the region thread so execute schedules the task then the latch awaits before the task even started running which means the task doesnt run until after the latch finishes awaiting
I am pretty sure that the latch doesn't block the regional thread as the thread that is actually calling the getBlockState method is not a regional or "synchornous" thread (I know thats wrong wording here) or at least it shouldn't be
Fixed folia not breaking trees in e530b52.
However I'll keep this open to keep track of the speed of tree breaking, trees break extremely slowly (delayed) on folia because of how the scheduling works.
Describe what happend
from what i understand its bc the object task always executes on the server AFTER the last await() finishes
it should execute the task then in get it should await and by then the task finishes executing so value isnt null but it never does that until after it finishes awaiting so task.get in
getBlockState
in Locator class is always null this might be because all the code is running on the region thread so execute schedules the task then the latch awaits before the task even started running which means the task doesnt run until after the latch finishes awaitingi had this convo with elecetroniccat in the paper discord might be useful to u might not idk https://discord.com/channels/289587909051416579/1090729705222721637/1308115336758956052
Reproduction steps
use on folia
Expected behavior
the tree falls down
Media
No response
Java Version
Java 21
Server Software
folia
Minecraft Version
1.21.1
Plugin Version
latest commit
Additional Information
No response
The text was updated successfully, but these errors were encountered: