Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: BlockSource::getDimensionId returns nullptr #1499

Closed
ShrBox opened this issue Mar 27, 2024 · 0 comments
Closed

[Bug]: BlockSource::getDimensionId returns nullptr #1499

ShrBox opened this issue Mar 27, 2024 · 0 comments
Labels
bug Related to software malfunction

Comments

@ShrBox
Copy link
Member

ShrBox commented Mar 27, 2024

Describe the bug

Calling BlockSource::getDimensionId() in events which has BlockSource variable, it returns nullptr.

To Reproduce

bus.emplaceListener<BlockChangedEvent>([](BlockChangedEvent& ev) {
    ll::logger
        .debug("Block Changed Pos: {} Dimension: {}", ev.pos().toString(), ev.blockSource().getDimensionId().id);
});

Expected behavior

Return Dimension ID

Screenshots

图片

Platform

Windows 11 23H2

Version

0.10.1

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Related to software malfunction
Development

No branches or pull requests

1 participant