Fixed fluid transmission

This commit is contained in:
HbmMods 2017-07-30 23:31:20 +02:00
parent bfb447278f
commit 0fa542202e
3 changed files with 14 additions and 2 deletions

View File

@ -193,7 +193,7 @@ public class GunZOMG extends Item {
@Override
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean bool) {
if(itemstack.getTagCompound() == null)
/*if(itemstack.getTagCompound() == null)
{
list.add("Gun not validated.");
} else if(itemstack.getTagCompound().getBoolean("valid")) {
@ -211,7 +211,9 @@ public class GunZOMG extends Item {
list.add("Ammo: None (Requires Validation)");
list.add("Damage: 35 - 45");
list.add("Energy Damage: 10000 - 100000");
list.add("Energy projectiles destroy blocks.");
list.add("Energy projectiles destroy blocks.");*/
for(int i = 0; i < 25; i++)
list.add("How do I use the ZOMG? How do I use the ZOMG? How do I use the ZOMG?");
}
@Override

View File

@ -1168,6 +1168,13 @@ public class Library {
{
tileentity = worldObj.getTileEntity(((TileEntityDummy)worldObj.getTileEntity(x, y, z)).targetX, ((TileEntityDummy)worldObj.getTileEntity(x, y, z)).targetY, ((TileEntityDummy)worldObj.getTileEntity(x, y, z)).targetZ);
}
if(block == ModBlocks.dummy_port_fluidtank)
{
tileentity = worldObj.getTileEntity(((TileEntityDummy)worldObj.getTileEntity(x, y, z)).targetX, ((TileEntityDummy)worldObj.getTileEntity(x, y, z)).targetY, ((TileEntityDummy)worldObj.getTileEntity(x, y, z)).targetZ);
}
if(tileentity == that)
tileentity = null;
if(tileentity instanceof IFluidDuct)
{

View File

@ -24,6 +24,9 @@ public class SoundLoopMiner extends SoundLoopMachine {
if(te instanceof TileEntityMachineMiningDrill) {
TileEntityMachineMiningDrill drill = (TileEntityMachineMiningDrill)te;
if(this.volume != 3)
volume = 3;
if(drill.torque <= 0.5F)
this.donePlaying = true;
}