mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Fixed the Rod of the Shifting Crust not using mana for the left click interaction. Closes #1317
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user