Skip to content

Main thread type ID copying example #11

@Azvyl

Description

@Azvyl

The problem comes from the core issue (related to pmmp/PocketMine-MP#6062) where BlockTypeIds::newId() is not synchronized between threads.

"The current recommendation is for plugins to copy the type ID from the main thread rather than using ::newId() within any other threads."

However, the RegisterBlocksDemoPM5 example appears to use ::newId() in a way that does not strictly enforce this main-thread copying recommendation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions