Fixed machine opening gui's while being wrenched now players must be sneaking to wrench machine

This commit is contained in:
Gig 2015-05-10 17:06:08 +01:00
parent 744a694142
commit 0de33330e3
19 changed files with 97 additions and 20 deletions

View file

@ -46,7 +46,11 @@ public class TileAesu extends TileMachineBase implements IWrenchable, IEnergyTil
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -59,7 +59,11 @@ public class TileAlloySmelter extends TileMachineBase implements IWrenchable, IE
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -59,7 +59,11 @@ public class TileAssemblingMachine extends TileMachineBase implements IWrenchabl
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -50,8 +50,13 @@ public class TileBlastFurnace extends TileMachineBase implements IWrenchable, II
}
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer) {
return true;
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -417,7 +417,11 @@ public class TileCentrifuge extends TileMachineBase implements IInventory,
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -54,7 +54,11 @@ public class TileChunkLoader extends TileMachineBase implements IWrenchable, IEn
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -60,7 +60,11 @@ public class TileDieselGenerator extends TileEntity implements IWrenchable,
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -61,7 +61,11 @@ public class TileDragonEggSiphoner extends TileMachineBase implements IWrenchabl
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -36,7 +36,11 @@ public class TileGrinder extends TileMachineBase implements IWrenchable, IEnergy
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -76,7 +76,11 @@ public class TileHeatGenerator extends TileMachineBase implements IWrenchable, I
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -51,7 +51,11 @@ public class TileImplosionCompressor extends TileMachineBase implements IWrencha
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -59,7 +59,11 @@ public class TileIndustrialElectrolyzer extends TileMachineBase implements IWren
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -58,7 +58,11 @@ public class TileLathe extends TileMachineBase implements IWrenchable, IEnergyTi
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -36,7 +36,11 @@ public class TileMatterFabricator extends TileMachineBase implements IWrenchable
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -57,7 +57,11 @@ public class TilePlateCuttingMachine extends TileMachineBase implements IWrencha
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -241,7 +241,11 @@ public class TileQuantumChest extends TileMachineBase implements IInventory,
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -222,7 +222,11 @@ public class TileQuantumTank extends TileMachineBase implements IFluidHandler,
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -147,7 +147,11 @@ public class TileRollingMachine extends TileMachineBase implements IWrenchable,
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override

View file

@ -60,7 +60,11 @@ public class TileThermalGenerator extends TileEntity implements IWrenchable,
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer)
{
return true;
if (entityPlayer.isSneaking())
{
return true;
}
return false;
}
@Override