mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 04:06:43 -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 li.cil.oc.integration.util.Power
|
||||||
import net.minecraft.entity.player.EntityPlayer
|
import net.minecraft.entity.player.EntityPlayer
|
||||||
import net.minecraft.item.ItemStack
|
import net.minecraft.item.ItemStack
|
||||||
|
import net.minecraft.util.BlockPos
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
|
||||||
|
|
||||||
object EventHandlerIndustrialCraft2 {
|
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 {
|
player.getHeldItem.getItem match {
|
||||||
case wrench: ItemToolWrench =>
|
case wrench: ItemToolWrench =>
|
||||||
if (changeDurability) {
|
if (changeDurability) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user