mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-04 15:43:00 +00:00
Merge pull request #454 from SquidDev-CC/ComputerCraft/hotfix/lazy-computer-peripheral
[WIP] Only instantiate ServerComputer on tile ticks
This commit is contained in:
@@ -45,12 +45,12 @@ public class DefaultPeripheralProvider implements IPeripheralProvider
|
||||
{
|
||||
if( !((TileTurtle)tile).hasMoved() )
|
||||
{
|
||||
return new ComputerPeripheral( "turtle", computerTile.createServerComputer() );
|
||||
return new ComputerPeripheral( "turtle", computerTile.createProxy() );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return new ComputerPeripheral( "computer", computerTile.createServerComputer() );
|
||||
return new ComputerPeripheral( "computer", computerTile.createProxy() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user