Skip to content

Commit b11b46a

Browse files
Use real identifier
1 parent 732f561 commit b11b46a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parallelworlds/src/main/java/parallelmc/parallelworlds/registry/ParallelBlockRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public boolean registerBlock(ResourceKey<@NotNull Block> key, Block block, Block
118118

119119
stack.applyComponentsAndValidate(
120120
DataComponentPatch.builder()
121-
.set(TypedDataComponent.createUnchecked(DataComponents.ITEM_MODEL, Identifier.fromNamespaceAndPath("minecraft", "sand")))
121+
.set(TypedDataComponent.createUnchecked(DataComponents.ITEM_MODEL, key.identifier()))
122122
.set(TypedDataComponent.createUnchecked(DataComponents.ITEM_NAME, name)).build());
123123

124124
return registerBlock(key, block, targetBlockstate, List.of(stack), stack);

0 commit comments

Comments
 (0)