Fix wrench to pass sneak-clicks to blocks

This commit is contained in:
Christian 2013-01-09 08:35:16 -05:00
parent 371189814b
commit c95063ebd3

View file

@ -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;
}
}