mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-07-18 21:03:46 +00:00
fix not resolving block id properly for craftengine
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user