Skip to content

Commit fa4e026

Browse files
Fix Stone Pressure Plate / Button recipe conflict (#4131)
1 parent e0f8086 commit fa4e026

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/main/java/com/gregtechceu/gtceu/data/recipe/misc/StoneMachineRecipes.java

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,14 @@ private static List<StoneTypeEntry> getDefaultEntries() {
202202
.stair(Items.POLISHED_BLACKSTONE_STAIRS)
203203
.wall(Items.POLISHED_BLACKSTONE_WALL)
204204
.pressurePlate(Items.POLISHED_BLACKSTONE_PRESSURE_PLATE)
205+
.button(Items.POLISHED_BLACKSTONE_BUTTON)
205206
.material(GTMaterials.Blackstone)
206207
.registerAllMaterialInfo()
207208
.build(),
208209
new StoneTypeEntry.Builder(mcModID, "polished_blackstone_brick")
209210
.stone(Items.POLISHED_BLACKSTONE_BRICKS)
210211
.slab(Items.POLISHED_BLACKSTONE_BRICK_SLAB)
211212
.stair(Items.POLISHED_BLACKSTONE_BRICK_STAIRS)
212-
.button(Items.POLISHED_BLACKSTONE_BUTTON)
213213
.wall(Items.POLISHED_BLACKSTONE_BRICK_WALL)
214214
.material(GTMaterials.Blackstone)
215215
.registerAllMaterialInfo()
@@ -595,15 +595,36 @@ public static void registerStoneTypeRecipes(Consumer<FinishedRecipe> provider, @
595595
}
596596
}
597597

598+
if (entry.pressurePlate != null) {
599+
600+
if (ConfigHolder.INSTANCE.recipes.hardRedstoneRecipes && entry.slab != null) {
601+
VanillaRecipeHelper.addShapedRecipe(provider, entry.stoneName + "_pressure_plate",
602+
new ItemStack(entry.pressurePlate, 2), "ShS", "LCL", "SdS",
603+
'S', new MaterialEntry(TagPrefix.screw, GTMaterials.Iron),
604+
'L', entry.slab,
605+
'C', new MaterialEntry(TagPrefix.spring, GTMaterials.Iron));
606+
607+
ASSEMBLER_RECIPES.recipeBuilder(entry.stoneName + "_pressure_plate")
608+
.inputItems(TagPrefix.spring, GTMaterials.Iron)
609+
.inputItems(entry.stone, 2)
610+
.outputItems(entry.pressurePlate, 2)
611+
.duration(100)
612+
.EUt(VA[ULV])
613+
.save(provider);
614+
} else if (ConfigHolder.INSTANCE.recipes.removeVanillaBlockRecipes) {
615+
616+
}
617+
}
618+
598619
if (entry.button != null) {
599620
if (ConfigHolder.INSTANCE.recipes.hardRedstoneRecipes && entry.pressurePlate != null) {
600621
VanillaRecipeHelper.addShapedRecipe(provider, "stone_button", new ItemStack(entry.button, 6), "sP",
601622
'P', entry.pressurePlate);
602623
}
603624

604-
if (entry.slab != null) {
625+
if (entry.pressurePlate != null) {
605626
GTRecipeTypes.CUTTER_RECIPES.recipeBuilder("cut_" + entry.stoneName + "slab_into_button")
606-
.inputItems(entry.slab)
627+
.inputItems(entry.pressurePlate)
607628
.outputItems(entry.button, 3)
608629
.duration(60)
609630
.EUt(8)
@@ -619,27 +640,6 @@ public static void registerStoneTypeRecipes(Consumer<FinishedRecipe> provider, @
619640
}
620641
}
621642

622-
if (entry.pressurePlate != null) {
623-
624-
if (ConfigHolder.INSTANCE.recipes.hardRedstoneRecipes && entry.slab != null) {
625-
VanillaRecipeHelper.addShapedRecipe(provider, entry.stoneName + "_pressure_plate",
626-
new ItemStack(entry.pressurePlate, 2), "ShS", "LCL", "SdS",
627-
'S', new MaterialEntry(TagPrefix.screw, GTMaterials.Iron),
628-
'L', entry.slab,
629-
'C', new MaterialEntry(TagPrefix.spring, GTMaterials.Iron));
630-
631-
ASSEMBLER_RECIPES.recipeBuilder(entry.stoneName + "_pressure_plate")
632-
.inputItems(TagPrefix.spring, GTMaterials.Iron)
633-
.inputItems(entry.stone, 2)
634-
.outputItems(entry.pressurePlate, 2)
635-
.duration(100)
636-
.EUt(VA[ULV])
637-
.save(provider);
638-
} else if (ConfigHolder.INSTANCE.recipes.removeVanillaBlockRecipes) {
639-
640-
}
641-
}
642-
643643
if (entry.stair != null) {
644644
if (ConfigHolder.INSTANCE.recipes.removeVanillaBlockRecipes) {
645645
VanillaRecipeHelper.addShapedRecipe(provider, entry.stoneName + "_stair_saw",

0 commit comments

Comments
 (0)