Fixed Belt network

This commit is contained in:
DarkGuardsman 2013-12-23 04:09:48 -05:00
parent e5811d09a7
commit e2446f4611
4 changed files with 15 additions and 14 deletions

View file

@ -465,13 +465,13 @@ public class TileEntityArmbot extends TileEntityAssembly implements IMultiBlock,
}
@Override
public double getWattLoad()
public int getWattLoad()
{
if (this.hasTask)
{
return .4;//400w
return 40;
}
return .03;//30w
return 3;
}
@Override

View file

@ -136,20 +136,21 @@ public abstract class TileEntityAssembly extends TileEntityEnergyMachine impleme
}
/** Amount of energy this tile runs on per tick */
public double getWattLoad()
public int getWattLoad()
{
return .001;//1J/t or 20J/t
return 1;//1J/t or 20J/t
}
public double getExtraLoad()
public int getExtraLoad()
{
return .001;//1J/t or 20J/t
return 1;//1J/t or 20J/t
}
@Override
public void togglePowerMode()
{
((NetworkSharedPower) this.getTileNetwork()).setPowerLess(this.runPowerLess());
super.togglePowerMode();
((NetworkSharedPower) this.getTileNetwork()).setPowerLess(!this.runPowerLess());
}
@Override

View file

@ -271,8 +271,8 @@ public class TileEntityManipulator extends TileEntityFilterable implements IRota
}
@Override
public double getExtraLoad()
public int getExtraLoad()
{
return .01;//1J/t or 20J/t
return 1;
}
}

View file

@ -247,9 +247,9 @@ public class TileEntityConveyorBelt extends TileEntityAssembly implements IBelt,
}
@Override
public double getWattLoad()
public int getWattLoad()
{
return 0.05 + (0.01 * this.getAffectedEntities().size());//50w + (10w * loadSize)
return 5;
}
}