Merge pull request #2772 from mmelvin0/fix-2763

Fix for #2763 - sneak should prevent conduit upgrade
This commit is contained in:
tterrag1098 committed 2015-09-05 22:38:38 -04:00
commit 58c63403c0
1 file changed
+3
@@ -138,6 +138,9 @@ public abstract class AbstractItemConduit extends Item implements IConduitItem {
@Override
public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
// Conduit replacement
if (player.isSneaking()) {
return false;
}
TileEntity te = world.getTileEntity(x, y, z);
if (te == null || !(te instanceof IConduitBundle)) {
return false;