mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 17:28:52 -04:00
Forward compat for BC, closes #1765.
This commit is contained in:
parent
f4de5c2549
commit
d24d70554b
@ -4,6 +4,7 @@ import li.cil.oc.api
|
||||
import li.cil.oc.common.asm.Injectable
|
||||
import li.cil.oc.integration.Mods
|
||||
import net.minecraft.block.Block
|
||||
import net.minecraft.entity.Entity
|
||||
import net.minecraft.entity.EntityLivingBase
|
||||
import net.minecraft.entity.item.EntityMinecart
|
||||
import net.minecraft.entity.player.EntityPlayer
|
||||
@ -58,6 +59,10 @@ class Wrench extends traits.SimpleItem with api.internal.Wrench {
|
||||
|
||||
def wrenchUsed(player: EntityPlayer, x: Int, y: Int, z: Int): Unit = player.swingItem()
|
||||
|
||||
def canWrench(player: EntityPlayer, entity: Entity): Boolean = true
|
||||
|
||||
def wrenchUsed(player: EntityPlayer, entity: Entity): Unit = player.swingItem()
|
||||
|
||||
// CoFH
|
||||
|
||||
def isUsable(stack: ItemStack, player: EntityLivingBase, x: Int, y: Int, z: Int): Boolean = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user