mirror of
https://github.com/GTNewHorizons/bdlib.git
synced 2026-11-21 12:42:18 +00:00
derp
This commit is contained in:
1 parent
7dc95fcce1
commit
13778072c0
1 file changed
+1
-1
@@ -180,7 +180,7 @@ class RecipeLoader {
|
||||
case StackBlock(mod, id, meta) =>
|
||||
val block = notNull(GameRegistry.findBlock(mod, id), "Block not found %s:%s".format(mod, id))
|
||||
if (Item.getItemFromBlock(block) == null)
|
||||
throw new StatementError("The block '%s:%s' does not have a valid matching item registered and thus can't be used in recipes".format(mod, id))
|
||||
error("The block '%s:%s' does not have a valid matching item registered and thus can't be used in recipes", mod, id)
|
||||
new ItemStack(block, cnt, meta)
|
||||
case StackItem(mod, id, meta) =>
|
||||
new ItemStack(notNull(GameRegistry.findItem(mod, id), "Item not found %s:%s".format(mod, id)), cnt, meta)
|
||||
|
||||
Reference in new issue
Block a user