fix not resolving block id properly for craftengine

This commit is contained in:
Julian Krings
2026-07-04 14:43:51 +02:00
parent ee7f54429a
commit ed67dd6058
@@ -85,9 +85,10 @@ public class CraftEngineDataProvider extends ExternalDataProvider {
@Override
public void processUpdate(@NotNull Engine engine, @NotNull Block block, @NotNull Identifier blockId) {
var pair = ExternalDataSVC.parseState(blockId);
var key = Key.of(blockId.namespace(), blockId.key());
var state = pair.getB();
blockId = pair.getA();
var key = Key.of(blockId.namespace(), blockId.key());
var customBlock = CraftEngineBlocks.byId(key);
if (customBlock != null) {
ImmutableBlockState blockState = customBlock.defaultState();