Fixed many sigils using the wrong stack for their logic (#1102)

This is why you use custom methods for things like this instead of MC methods
This commit is contained in:
Nicholas Ignoffo 2017-03-14 19:33:13 -07:00
parent 41c2f37042
commit 216bdb2d2e
12 changed files with 55 additions and 1 deletions

View file

@ -3,6 +3,7 @@ package WayofTime.bloodmagic.item.sigil;
import java.util.ArrayList;
import java.util.List;
import WayofTime.bloodmagic.api.iface.ISigil;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
@ -47,6 +48,8 @@ public class ItemSigilDivination extends ItemSigilBase implements IAltarReader
// world.spawnEntityInWorld(fred);
// }
ItemStack stack = player.getHeldItem(hand);
if (stack.getItem() instanceof ISigil.Holding)
stack = ((Holding) stack.getItem()).getHeldItem(stack, player);
if (PlayerHelper.isFakePlayer(player))
return ActionResult.newResult(EnumActionResult.FAIL, stack);