Fixed armbot not starting on area load

Also increased the speed of rotation from 1.3f to 2.0f. Later i'll be
making tiered version of the arm starting with a wooden prototype
version.
This commit is contained in:
Robert Seifert 2013-05-25 21:37:11 -04:00
parent 7d9c674271
commit 8149be82bf
2 changed files with 13 additions and 1 deletions

View file

@ -73,7 +73,7 @@ public class TileEntityArmbot extends TileEntityAssemblyNetwork implements IMult
public float renderPitch = 0;
public float renderYaw = 0;
private int ticksSincePower = 0;
public final float ROTATION_SPEED = 1.3f;
public final float ROTATION_SPEED = 2.0f;
private String displayText = "";
@ -90,6 +90,16 @@ public class TileEntityArmbot extends TileEntityAssemblyNetwork implements IMult
*/
public EntityItem renderEntityItem = null;
@Override
public void initiate()
{
super.initiate();
if(!this.commandManager.hasTasks())
{
this.onInventoryChanged();
}
}
@Override
public void onUpdate()
{

View file

@ -32,6 +32,8 @@ import com.google.common.io.ByteArrayDataInput;
import dark.library.helpers.Pair;
import dark.library.inv.ISlotPickResult;
import dark.library.machine.crafting.AutoCraftingManager;
import dark.library.machine.crafting.IAutoCrafter;
public class TileEntityImprinter extends TileEntityAdvanced implements ISidedInventory, IArmbotUseable, IPacketReceiver, ISlotPickResult, IAutoCrafter
{