mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 19:25:20 -04:00
Fixed IC2 wrench integration.
This commit is contained in:
parent
c2f0077275
commit
3b4b2f23a8
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user