From 3b4b2f23a865f69003cf09d100da4af7600caa82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Thu, 14 Apr 2016 23:55:36 +0200 Subject: [PATCH] Fixed IC2 wrench integration. --- .../cil/oc/integration/ic2/EventHandlerIndustrialCraft2.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/li/cil/oc/integration/ic2/EventHandlerIndustrialCraft2.scala b/src/main/scala/li/cil/oc/integration/ic2/EventHandlerIndustrialCraft2.scala index 75f8f2e54..8c7f3bd7b 100644 --- a/src/main/scala/li/cil/oc/integration/ic2/EventHandlerIndustrialCraft2.scala +++ b/src/main/scala/li/cil/oc/integration/ic2/EventHandlerIndustrialCraft2.scala @@ -8,6 +8,7 @@ import li.cil.oc.api.event.RobotUsedToolEvent import li.cil.oc.integration.util.Power import net.minecraft.entity.player.EntityPlayer import net.minecraft.item.ItemStack +import net.minecraft.util.BlockPos import net.minecraftforge.fml.common.eventhandler.SubscribeEvent object EventHandlerIndustrialCraft2 { @@ -47,7 +48,7 @@ object EventHandlerIndustrialCraft2 { } } - def useWrench(player: EntityPlayer, x: Int, y: Int, z: Int, changeDurability: Boolean): Boolean = { + def useWrench(player: EntityPlayer, pos: BlockPos, changeDurability: Boolean): Boolean = { player.getHeldItem.getItem match { case wrench: ItemToolWrench => if (changeDurability) {