Auto-Sync

This commit is contained in:
DarkGuardsman 2013-09-16 07:30:40 -04:00
parent 42c8b7551f
commit 4b18a6b8b5
3 changed files with 6 additions and 5 deletions

View file

@ -3,6 +3,7 @@ package dark.farmtech.client;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import dark.farmtech.CommonProxy;
@SideOnly(Side.CLIENT)
public class ClientProxy extends CommonProxy
{

View file

@ -8,9 +8,9 @@ import dark.core.prefab.TileEntityMachine;
import dark.core.prefab.invgui.InvChest;
/** Simple box that turns matter into compost to grow plants with
*
*
* 6 slot input stores output as an float that then need to be converted to a bucket of compost
*
*
* @author DarkGuardsman */
public class TileEntityCompBox extends TileEntityMachine
{
@ -33,7 +33,7 @@ public class TileEntityCompBox extends TileEntityMachine
}
/** Converts one item in the slot into compost
*
*
* @param slot 0-5 */
public void process(int slot)
{
@ -49,7 +49,7 @@ public class TileEntityCompBox extends TileEntityMachine
}
/** Tests if the item in the slot is read to be processed
*
*
* @param slot 0-5 */
public boolean canProcess(int slot)
{

View file

@ -47,7 +47,7 @@ public class EntityFarmDrone extends EntityLiving implements IElectricalStorage
{
//TODO stop work and return home
}
if (this.home == null)
if (this.home == null || this.getEnergyStored() <= 0)
{
//TODO turn into block, or have go dormant
}