Skip to content

Commit

Permalink
fix checks for gt (#36)
Browse files Browse the repository at this point in the history
* fix checks for gt

* sa
  • Loading branch information
chochem authored Jun 21, 2024
1 parent dd0c9ae commit fabad14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/tb/common/block/BlockRainbowCactus.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void addDyeDropsToOutput(Random rand, ArrayList<ItemStack> ret) {
public static ItemStack[] allowedDyes;

public static void loadColors() {
if (Loader.isModLoaded("gregtech")) {
if (Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi")) {
// The fact all dyes have the same probability of dropping when gregtech is installed is intended.
allowedDyes = new ItemStack[] { ItemList.Color_00.get(1), ItemList.Color_01.get(1),
ItemList.Color_02.get(1), ItemList.Color_03.get(1), ItemList.Color_04.get(1), ItemList.Color_05.get(1),
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/tb/init/TBThaumonomicon.java
Original file line number Diff line number Diff line change
Expand Up @@ -2858,7 +2858,9 @@ public static void setup() {
.setConcealed()
.setPages(
new ResearchPage(
Loader.isModLoaded("gregtech") ? "tb.rec.rainCacti.page.0.gt" : "tb.rec.rainCacti.page.0"),
(Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi"))
? "tb.rec.rainCacti.page.0.gt"
: "tb.rec.rainCacti.page.0"),
new ResearchPage(rainbowCactiRec))
.registerResearchItem();

Expand Down

0 comments on commit fabad14

Please sign in to comment.