mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 22:14:42 +00:00
Merge pull request #2772 from mmelvin0/fix-2763
Fix for #2763 - sneak should prevent conduit upgrade
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user