mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-13 19:57:12 +00:00
Migrate the computer tasks into a separate thread
- Move state management (turnOn, shutdown, etc...) event handling and the command queue into a ComputerExecutor - This means the computer thread now just handles running "work" on computer executors, rather than managing a separate command queue + requeuing it.
This commit is contained in:
@@ -204,16 +204,6 @@ public class ServerComputer extends ServerTerminal implements IComputer, IComput
|
||||
NetworkHandler.sendToAllPlayers( new ComputerDeletedClientMessage( getInstanceID() ) );
|
||||
}
|
||||
|
||||
public IWritableMount getRootMount()
|
||||
{
|
||||
return m_computer.getRootMount();
|
||||
}
|
||||
|
||||
public int assignID()
|
||||
{
|
||||
return m_computer.assignID();
|
||||
}
|
||||
|
||||
public void setID( int id )
|
||||
{
|
||||
m_computer.setID( id );
|
||||
@@ -303,7 +293,7 @@ public class ServerComputer extends ServerTerminal implements IComputer, IComput
|
||||
|
||||
public void addAPI( ILuaAPI api )
|
||||
{
|
||||
m_computer.addAPI( api );
|
||||
m_computer.addApi( api );
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
|
||||
Reference in New Issue
Block a user