Skip to content

Commit

Permalink
Add a check if dreamcraft is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderProyects committed Dec 15, 2024
1 parent 14e7154 commit bc27c80
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/main/java/fox/spiteful/avaritia/compat/botania/Tsundere.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.nbt.NBTTagCompound;

import cpw.mods.fml.common.registry.GameRegistry;
import fox.spiteful.avaritia.Avaritia;
import fox.spiteful.avaritia.blocks.LudicrousBlocks;
import fox.spiteful.avaritia.compat.Compat;
import fox.spiteful.avaritia.crafting.ExtremeCraftingManager;
Expand All @@ -29,14 +30,17 @@ public static void baka() throws Compat.ItemNotFoundException {

SubTileCheaty.lexicon = new LudicrousLexicon("asgardandelion", BotaniaAPI.categoryGenerationFlowers);
SubTileCheaty.lexicon.addPage(BotaniaAPI.internalHandler.textPage("avaritia.lexicon.asgardandelion.0"));
SubTileCheaty.lexicon.setIcon(cheaty);

ExtremeCraftingManager.getInstance().addRecipe(
cheaty,
new Object[] { " III ", " IIIII ", " IIXII ", " IIIII ", " III ", " nn N nn ",
"nnnnNnnnn", " nn N nn ", " N ", 'I', new ItemStack(LudicrousItems.resource, 1, 6), 'X',
new ItemStack(LudicrousItems.resource, 1, 5), 'N', new ItemStack(LudicrousItems.resource, 1, 4),
'n', new ItemStack(LudicrousItems.resource, 1, 3), });
if (!Avaritia.isDreamCraftLoaded) {
SubTileCheaty.lexicon.setIcon(cheaty);

ExtremeCraftingManager.getInstance().addRecipe(
cheaty,
new Object[] { " III ", " IIIII ", " IIXII ", " IIIII ", " III ", " nn N nn ",
"nnnnNnnnn", " nn N nn ", " N ", 'I', new ItemStack(LudicrousItems.resource, 1, 6),
'X', new ItemStack(LudicrousItems.resource, 1, 5), 'N',
new ItemStack(LudicrousItems.resource, 1, 4), 'n',
new ItemStack(LudicrousItems.resource, 1, 3), });
}

BotaniaAPI.registerSubTile("soarleander", SubTileChicken.class);
BotaniaAPI.registerSubTileSignature(SubTileChicken.class, new Signature("soarleander"));
Expand Down

0 comments on commit bc27c80

Please sign in to comment.