Fix Hand Framing Display Recipes (#1024)

[BUG]
This commit is contained in:
Integer Limit 2024-10-04 12:01:40 +10:00 committed by GitHub
parent 216df6c178
commit 7ebb0ebe33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,13 +42,13 @@ for (ItemStack stack : items) {
.name(recipeName) .name(recipeName)
.output(recipeStack) .output(recipeStack)
.matrix( .matrix(
'ST ', 'IT ',
'FS ', 'FS ',
' ') ' ')
.key('S', item("xtones:zane")) .key('S', item("xtones:zane"))
.key('T', trim ? item("extendedcrafting:storage", 4) : IIngredient.EMPTY) .key('T', trim ? item("extendedcrafting:storage", 4) : IIngredient.EMPTY)
.key('F', front ? item("xtones:zane", 15) : IIngredient.EMPTY) .key('F', front ? item("xtones:zane", 15) : IIngredient.EMPTY)
.key('S', stack) .key('I', stack)
.recipeClassFunction((output, width, height, ingredients) -> new ShapedDummyRecipe(output, ingredients, width, height, false)) .recipeClassFunction((output, width, height, ingredients) -> new ShapedDummyRecipe(output, ingredients, width, height, false))
.register() .register()
@ -66,9 +66,6 @@ for (ItemStack stack : items) {
static String getRecipeName(ItemStack stack, boolean trim, boolean front) { static String getRecipeName(ItemStack stack, boolean trim, boolean front) {
String baseName = "nomiceu:hand_framing_" String baseName = "nomiceu:hand_framing_"
// We have to use safe method helpers, because some items from Framed Compacting Drawers mislabel addInformation,
// Without SideOnly, so it crashes.
// Use the special of class type so the addInformation method isn't loaded.
def rl = stack.getItem().getRegistryName() def rl = stack.getItem().getRegistryName()
if (rl != null) if (rl != null)
baseName = baseName + rl.getNamespace() + "_" + rl.getPath() baseName = baseName + rl.getNamespace() + "_" + rl.getPath()