1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-11 18:00:29 +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:
SquidDev 2019-02-27 13:47:50 +00:00
parent 67af7a698b
commit 3e28f79ce9

View File

@ -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" ) );
} );