mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-27 06:20:02 +00:00
fix not resolving block id properly for craftengine
This commit is contained in:
1 file changed
+2
-1
@@ -85,9 +85,10 @@ public class CraftEngineDataProvider extends ExternalDataProvider {
|
|||||||
@Override
|
@Override
|
||||||
public void processUpdate(@NotNull Engine engine, @NotNull Block block, @NotNull Identifier blockId) {
|
public void processUpdate(@NotNull Engine engine, @NotNull Block block, @NotNull Identifier blockId) {
|
||||||
var pair = ExternalDataSVC.parseState(blockId);
|
var pair = ExternalDataSVC.parseState(blockId);
|
||||||
var key = Key.of(blockId.namespace(), blockId.key());
|
|
||||||
var state = pair.getB();
|
var state = pair.getB();
|
||||||
|
blockId = pair.getA();
|
||||||
|
|
||||||
|
var key = Key.of(blockId.namespace(), blockId.key());
|
||||||
var customBlock = CraftEngineBlocks.byId(key);
|
var customBlock = CraftEngineBlocks.byId(key);
|
||||||
if (customBlock != null) {
|
if (customBlock != null) {
|
||||||
ImmutableBlockState blockState = customBlock.defaultState();
|
ImmutableBlockState blockState = customBlock.defaultState();
|
||||||
|
|||||||
Reference in new issue
Block a user