mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-12 02:10:30 +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 )
|
||||
{
|
||||
if( computer.isOn() ) shutdown++;
|
||||
computer.unload();
|
||||
computer.shutdown();
|
||||
}
|
||||
context.getSender().sendMessage( text( "Shutdown " + shutdown + " / " + computers.size() + " computers" ) );
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user