mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-07-05 03:22:53 +00:00
Shutdown computers in /computercraft shutdown
Unloading them now means they'll never be turned on again, which is a little unideal.
This commit is contained in:
parent
67af7a698b
commit
3e28f79ce9
@ -163,7 +163,7 @@ public final class CommandComputerCraft extends CommandDelegate
|
|||||||
for( ServerComputer computer : computers )
|
for( ServerComputer computer : computers )
|
||||||
{
|
{
|
||||||
if( computer.isOn() ) shutdown++;
|
if( computer.isOn() ) shutdown++;
|
||||||
computer.unload();
|
computer.shutdown();
|
||||||
}
|
}
|
||||||
context.getSender().sendMessage( text( "Shutdown " + shutdown + " / " + computers.size() + " computers" ) );
|
context.getSender().sendMessage( text( "Shutdown " + shutdown + " / " + computers.size() + " computers" ) );
|
||||||
} );
|
} );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user