Skip to content

Commit

Permalink
Fix #444
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotori316 committed Jun 25, 2024
1 parent 2c1ff6b commit 7093f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neoforge/src/main/scala/com/yogpc/qp/Holder.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private static <T extends BlockEntity> BlockEntityType<T> registerEntityType(Blo
throw new IllegalArgumentException("Blocks must not be empty.");
}
var type = BlockEntityType.Builder.of(supplier, block.toArray(Block[]::new)).build(DSL.emptyPartType());
ENTITY_TYPES.add(new NamedEntry<>(block.get(0).getRegistryName(), type, dummy.getClass().arrayType()));
ENTITY_TYPES.add(new NamedEntry<>(block.get(0).getRegistryName(), type, dummy.getClass().getComponentType()));
CONDITION_HOLDERS.add(new EntryConditionHolder(block.get(0).getRegistryName(), condition));
return type;
}
Expand Down

0 comments on commit 7093f6e

Please sign in to comment.