Fix wrench to pass sneak-clicks to blocks
This commit is contained in:
parent
371189814b
commit
c95063ebd3
1 changed files with 7 additions and 0 deletions
|
@ -2,6 +2,7 @@ package buildcraft.core;
|
|||
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
import buildcraft.api.tools.IToolWrench;
|
||||
|
||||
public class ItemWrench extends ItemBuildCraft implements IToolWrench {
|
||||
|
@ -19,4 +20,10 @@ public class ItemWrench extends ItemBuildCraft implements IToolWrench {
|
|||
@Override
|
||||
public void wrenchUsed(EntityPlayer player, int x, int y, int z) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldPassSneakingClickToBlock(World par2World, int par4, int par5, int par6)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue