mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-25 14:24:37 +00:00
All the items !sigils
This commit is contained in:
1 parent
d88cc2d79e
commit
a2c4f4b965
129 files changed
+587
-1134
No files matched your search
@@ -16,7 +16,7 @@ import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.alchemicalWizardry.ModItems;
|
||||
import WayofTime.alchemicalWizardry.api.items.IAltarManipulator;
|
||||
import WayofTime.alchemicalWizardry.common.items.EnergyBattery;
|
||||
import WayofTime.alchemicalWizardry.common.items.Orb;
|
||||
import WayofTime.alchemicalWizardry.common.items.sigil.holding.SigilOfHolding;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
@@ -46,9 +46,9 @@ public class BlockAltar extends BlockContainer
|
||||
{
|
||||
ItemStack stack = ((TEAltar) tile).getStackInSlot(0);
|
||||
|
||||
if (stack != null && stack.getItem() instanceof EnergyBattery)
|
||||
if (stack != null && stack.getItem() instanceof Orb)
|
||||
{
|
||||
EnergyBattery bloodOrb = (EnergyBattery) stack.getItem();
|
||||
Orb bloodOrb = (Orb) stack.getItem();
|
||||
int maxEssence = bloodOrb.getMaxEssence();
|
||||
int currentEssence = bloodOrb.getCurrentEssence(stack);
|
||||
int level = currentEssence * 15 / maxEssence;
|
||||
|
||||
Reference in new issue
Block a user