Skip to content

[BUG]: doesnt work on folia #97

@ewof

Description

@ewof

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 awaiting

i 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA unintentional behavior that needs to be fixedPlatform: Folia

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions