Freezing Scarpet

And the client
This commit is contained in:
altrisi committed 2020-12-21 00:14:20 +01:00
1 parent c6529c3d3c
commit 33347baaf7
10 files changed
+87 -5

No files matched your search

@@ -2,6 +2,7 @@ package carpet.commands;
import carpet.CarpetSettings;
import carpet.helpers.TickSpeed;
import carpet.network.ServerNetworkHandler;
import carpet.settings.SettingsManager;
import carpet.utils.CarpetProfiler;
import carpet.utils.Messenger;
@@ -107,6 +108,7 @@ public class TickCommand
TickSpeed.deepFreeze = false;
Messenger.m(source, "gi Game runs normally");
}
ServerNetworkHandler.updateTickingStateToConnectedPlayers();
return 1;
}
@@ -119,6 +121,7 @@ public class TickCommand
private static int toggleSuperHot(ServerCommandSource source)
{
TickSpeed.is_superHot = !TickSpeed.is_superHot;
ServerNetworkHandler.updateTickingStateToConnectedPlayers();
if (TickSpeed.is_superHot)
{
Messenger.m(source,"gi Superhot enabled");