LiteLDev/LeviLamina

[Bug]: `BlockSource::getDimensionId` returns nullptr

ShrBox opened this issue · 0 comments

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