Skip to content

Commit 466c123

Browse files
authored
Merge pull request #13 from GTModpackTeam/kono/fixRodRecipe
fix stickLong recipe
2 parents 046017d + 2e1e55b commit 466c123

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v1.3.2
2+
## Storage Drawers Integration
3+
- Fixed `stickLong` recipe for materials without `Ingot` or `Gem`.
4+
5+
* * *
16
# v1.3.1
27
## Tinkers' Construct Integration
38
- Fixed TiC main-hand + GT off-hand combination not using the GT off-hand tool when it is the appropriate tool for the block

src/main/java/com/github/gtexpert/gtmt/integration/storagedrawers/recipes/UpgradesLoader.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
import gregtech.api.items.metaitem.MetaItem;
88
import gregtech.api.recipes.ModHandler;
9+
import gregtech.api.recipes.RecipeMaps;
910
import gregtech.api.unification.material.Material;
1011
import gregtech.api.unification.material.Materials;
12+
import gregtech.api.unification.material.properties.PropertyKey;
1113
import gregtech.api.unification.ore.OrePrefix;
1214
import gregtech.api.unification.stack.UnificationEntry;
1315
import gregtech.common.items.MetaItems;
@@ -63,6 +65,16 @@ public static void upgradeStorage() {
6365
if (material == Materials.Emerald) {
6466
addStorageUpgradeConvertRecipe(Mods.StorageDrawers.getItem("upgrade_storage", 1, 4), output, material);
6567
}
68+
69+
if (!material.hasProperty(PropertyKey.INGOT) && !material.hasProperty(PropertyKey.GEM)) {
70+
RecipeMaps.EXTRUDER_RECIPES.recipeBuilder()
71+
.input(OrePrefix.dust, material)
72+
.notConsumable(MetaItems.SHAPE_EXTRUDER_ROD_LONG)
73+
.output(OrePrefix.stickLong, material)
74+
.duration((int) Math.max(material.getMass(), 1L))
75+
.EUt(64)
76+
.buildAndRegister();
77+
}
6678
});
6779
}
6880

0 commit comments

Comments
 (0)