fixed getConcreteStack in RecipeLoader ignoring size

This commit is contained in:
bdew committed 2014-07-15 14:01:47 +03:00
1 parent 7a5982bf37
commit e2c7940539
1 file changed
+3 -3
+3 -3
View File
@@ -178,11 +178,11 @@ class RecipeLoader {
return s
case StackMacro(ch) => getConcreteStack(currCharMap(ch), cnt)
case StackGeneric(mod, id) =>
notNull(GameRegistry.findItemStack(mod, id, 1), "Stack not found %s:%s".format(mod, id))
notNull(GameRegistry.findItemStack(mod, id, cnt), "Stack not found %s:%s".format(mod, id))
case StackBlock(mod, id, meta) =>
new ItemStack(notNull(GameRegistry.findBlock(mod, id), "Block not found %s:%s".format(mod, id)), 1, meta)
new ItemStack(notNull(GameRegistry.findBlock(mod, id), "Block not found %s:%s".format(mod, id)), cnt, meta)
case StackItem(mod, id, meta) =>
new ItemStack(notNull(GameRegistry.findItem(mod, id), "Item not found %s:%s".format(mod, id)), 1, meta)
new ItemStack(notNull(GameRegistry.findItem(mod, id), "Item not found %s:%s".format(mod, id)), cnt, meta)
case StackReflect(cls, field, meta) => reflectStack(cls, field, meta, cnt)
case StackGetter(cls, method, param, meta) => reflectStackGetter(cls, method, param, meta, cnt)
}