Fixed the Rod of the Shifting Crust not using mana for the left click interaction. Closes #1317

This commit is contained in:
Vasco Lavos committed 2015-08-30 22:29:40 +01:00
1 parent 21796edc37
commit b7cb0e313e
1 file changed
+4 -2
@@ -108,8 +108,10 @@ public class ItemExchangeRod extends ItemMod implements IManaUsingItem, IWirefra
public void onLeftClick(PlayerInteractEvent event) {
if(event.action == Action.LEFT_CLICK_BLOCK) {
ItemStack stack = event.entityPlayer.getCurrentEquippedItem();
if(stack != null && stack.getItem() == this && canExchange(stack))
exchange(event.world, event.entityPlayer, event.x, event.y, event.z, stack, getBlock(stack), getBlockMeta(stack));
if(stack != null && stack.getItem() == this && canExchange(stack) && ManaItemHandler.requestManaExactForTool(stack, event.entityPlayer, COST, false)) {
if(exchange(event.world, event.entityPlayer, event.x, event.y, event.z, stack, getBlock(stack), getBlockMeta(stack)))
ManaItemHandler.requestManaExactForTool(stack, event.entityPlayer, COST, true);
}
}
}