Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public abstract class TileComputerBase extends TileGeneric
protected String m_label;
protected boolean m_on;
protected boolean m_startOn;
protected boolean m_fresh;

protected TileComputerBase()
{
Expand All @@ -45,6 +46,7 @@ protected TileComputerBase()
m_label = null;
m_on = false;
m_startOn = false;
m_fresh = false;
}

@Override
Expand Down Expand Up @@ -213,7 +215,7 @@ public void update()
ServerComputer computer = createServerComputer();
if( computer != null )
{
if( m_startOn )
if( m_startOn || (m_fresh && m_on) )
{
computer.turnOn();
m_startOn = false;
Expand All @@ -223,6 +225,7 @@ public void update()
{
updateOutput();
}
m_fresh = false;
m_computerID = computer.getID();
m_label = computer.getLabel();
m_on = computer.isOn();
Expand Down Expand Up @@ -471,6 +474,7 @@ public ServerComputer createServerComputer()
{
ServerComputer computer = createComputer( m_instanceID, m_computerID );
ComputerCraft.serverComputerRegistry.add( m_instanceID, computer );
m_fresh = true;
changed = true;
}
if( changed )
Expand Down