Fix computer upgrade recipes

Fixes #1272
This commit is contained in:
Jonathan Coates 2022-12-26 09:30:59 +00:00
parent 68a5081740
commit 0ad12eeab6
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@
"tag": "forge:ingots/gold"
},
"C": {
"item": "computercraft:computer_advanced"
"item": "computercraft:computer_normal"
}
},
"result": {

View File

@ -10,7 +10,7 @@
"tag": "forge:ingots/gold"
},
"C": {
"item": "computercraft:computer_advanced"
"item": "computercraft:turtle_normal"
},
"B": {
"tag": "forge:storage_blocks/gold"

View File

@ -200,7 +200,7 @@ private void basicRecipes( @Nonnull Consumer<IFinishedRecipe> add )
.pattern( "#C#" )
.pattern( "# #" )
.define( '#', Tags.Items.INGOTS_GOLD )
.define( 'C', Registry.ModItems.COMPUTER_ADVANCED.get() )
.define( 'C', Registry.ModItems.COMPUTER_NORMAL.get() )
.unlockedBy( "has_components", inventoryChange( itemPredicate( Registry.ModItems.COMPUTER_NORMAL.get() ), itemPredicate( Tags.Items.INGOTS_GOLD ) ) )
.save(
RecipeWrapper.wrap( ComputerUpgradeRecipe.SERIALIZER, add ).withExtraData( family( ComputerFamily.ADVANCED ) ),
@ -246,7 +246,7 @@ private void basicRecipes( @Nonnull Consumer<IFinishedRecipe> add )
.pattern( "#C#" )
.pattern( " B " )
.define( '#', Tags.Items.INGOTS_GOLD )
.define( 'C', Registry.ModItems.COMPUTER_ADVANCED.get() )
.define( 'C', Registry.ModItems.TURTLE_NORMAL.get() )
.define( 'B', Tags.Items.STORAGE_BLOCKS_GOLD )
.unlockedBy( "has_components", inventoryChange( itemPredicate( Registry.ModItems.TURTLE_NORMAL.get() ), itemPredicate( Tags.Items.INGOTS_GOLD ) ) )
.save(