Skip to content

Commit

Permalink
fixed electric tool recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Dec 14, 2023
1 parent 1b1ba1c commit b3ba9cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common/src/main/java/trinsdar/gt4r/data/ToolTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public class ToolTypes {
public ItemStack build(CraftingContainer inv, MaterialRecipe.Result mats) {
Material m = (Material) mats.mats.get("secondary");
Tuple<Long, Long> battery = (Tuple<Long, Long>) mats.mats.get("battery");
String domain = id.equals(ROCK_CUTTER.getId()) ? GT4RRef.ID : GT4RRef.ANTIMATTER;
IAntimatterTool type = AntimatterAPI.get(IAntimatterTool.class, id.replace('-', '_'), domain);
IAntimatterTool type = AntimatterAPI.get(IAntimatterTool.class, id.replace('-', '_'));
return type.resolveStack((Material) mats.mats.get("primary"), m == null ? NULL : m, battery.getA(), battery.getB());
}

Expand Down

0 comments on commit b3ba9cf

Please sign in to comment.