generated from tilera/1710mod
feat: old crucible crafting
This commit is contained in:
parent
9569858bc8
commit
8a99e292ac
|
@ -42,7 +42,7 @@ repositories {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "thaumcraft:Thaumcraft:1.7.10-4.2.3.5:deobf"
|
implementation "thaumcraft:Thaumcraft:1.7.10-4.2.3.5:deobf"
|
||||||
implementation "dev.tilera:auracore:1.1.1:deobf"
|
implementation "dev.tilera:auracore:1.2.0:deobf"
|
||||||
implementation "com.github.tox1cozZ:mixin-booter-legacy:1.1.2"
|
implementation "com.github.tox1cozZ:mixin-booter-legacy:1.1.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,11 @@ package net.anvilcraft.classiccasting.items.wands;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||||
|
import dev.tilera.auracore.api.AuracoreRecipes;
|
||||||
import dev.tilera.auracore.api.IWand;
|
import dev.tilera.auracore.api.IWand;
|
||||||
|
import dev.tilera.auracore.api.crafting.CrucibleRecipe;
|
||||||
import dev.tilera.auracore.aura.AuraManager;
|
import dev.tilera.auracore.aura.AuraManager;
|
||||||
|
import dev.tilera.auracore.crafting.AuracoreCraftingManager;
|
||||||
import net.anvilcraft.classiccasting.CCBlocks;
|
import net.anvilcraft.classiccasting.CCBlocks;
|
||||||
import net.anvilcraft.classiccasting.ClassicCastingTab;
|
import net.anvilcraft.classiccasting.ClassicCastingTab;
|
||||||
import net.anvilcraft.classiccasting.WandManager;
|
import net.anvilcraft.classiccasting.WandManager;
|
||||||
|
@ -362,19 +365,18 @@ public abstract class ItemWandCasting extends Item implements IWand {
|
||||||
tile2.spillRemnants();
|
tile2.spillRemnants();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// TODO: worry about this when tilera implements the other recipe handler
|
CrucibleRecipe recipe = AuracoreRecipes.getCrucibleRecipe(tile2.aspects, tile2);
|
||||||
// thingy
|
if (WandManager.spendCharge(
|
||||||
//if (WandManager.spendCharge(
|
world,
|
||||||
// world,
|
itemstack,
|
||||||
// itemstack,
|
player,
|
||||||
// player,
|
AuracoreRecipes.getCrucibleOutputCost(tile2, recipe)
|
||||||
// ThaumcraftCraftingManager.getCrucibleOutputCost(tile2)
|
)) {
|
||||||
// )) {
|
AuracoreCraftingManager.performCrucibleCrafting(
|
||||||
// ThaumcraftCraftingManager.performCrucibleCrafting(
|
player, tile2
|
||||||
// world, player, tile2
|
);
|
||||||
// );
|
return true;
|
||||||
// return true;
|
}
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue