Skip to content

Commit

Permalink
Update BlockTypeRegistry.java
Browse files Browse the repository at this point in the history
  • Loading branch information
MehVahdJukaar authored Jan 23, 2025
1 parent 2da7c97 commit 22d9592
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public T getBlockTypeOf(ItemLike itemLike) {
if (itemLike instanceof Block b) {
Item item = b.asItem();
if (item == Items.AIR) {
throw new IllegalStateException("Block " + b + " has no item. This likely means getBlockTypeOf was called too early. This is a bug");
return null;
}
return childrenToType.get(item);
}
Expand Down

0 comments on commit 22d9592

Please sign in to comment.