yeet most of tick
This commit is contained in:
1 parent
2c01a98216
commit
1a7e8b6875
30 files changed
+156
-1420
No files matched your search
@@ -5,8 +5,6 @@ import carpet.CarpetExtension;
|
||||
import carpet.CarpetSettings;
|
||||
import carpet.api.settings.CarpetRule;
|
||||
import carpet.api.settings.InvalidRuleValueException;
|
||||
import carpet.fakes.LevelInterface;
|
||||
import carpet.helpers.TickRateManager;
|
||||
import carpet.api.settings.SettingsManager;
|
||||
|
||||
import java.util.HashMap;
|
||||
@@ -14,10 +12,8 @@ import java.util.Map;
|
||||
import java.util.function.BiConsumer;
|
||||
|
||||
import net.minecraft.client.player.LocalPlayer;
|
||||
import net.minecraft.nbt.ByteTag;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.ListTag;
|
||||
import net.minecraft.nbt.NumericTag;
|
||||
import net.minecraft.nbt.Tag;
|
||||
import net.minecraft.network.protocol.common.ServerboundCustomPayloadPacket;
|
||||
|
||||
@@ -75,23 +71,6 @@ public class ClientNetworkHandler
|
||||
}
|
||||
}
|
||||
});
|
||||
dataHandlers.put("TickRate", (p, t) -> {
|
||||
TickRateManager tickRateManager = ((LevelInterface) p.clientLevel).tickRateManager();
|
||||
tickRateManager.setTickRate(((NumericTag) t).getAsFloat());
|
||||
});
|
||||
dataHandlers.put("TickingState", (p, t) -> {
|
||||
CompoundTag tickingState = (CompoundTag) t;
|
||||
TickRateManager tickRateManager = ((LevelInterface) p.clientLevel).tickRateManager();
|
||||
tickRateManager.setFrozenState(tickingState.getBoolean("is_paused"), tickingState.getBoolean("deepFreeze"));
|
||||
});
|
||||
dataHandlers.put("SuperHotState", (p, t) -> {
|
||||
TickRateManager tickRateManager = ((LevelInterface) p.clientLevel).tickRateManager();
|
||||
tickRateManager.setSuperHot(t.equals(ByteTag.ONE));
|
||||
});
|
||||
dataHandlers.put("TickPlayerActiveTimeout", (p, t) -> {
|
||||
TickRateManager tickRateManager = ((LevelInterface) p.clientLevel).tickRateManager();
|
||||
tickRateManager.setPlayerActiveTimeout(((NumericTag) t).getAsInt());
|
||||
});
|
||||
dataHandlers.put("scShape", (p, t) -> { // deprecated // and unused // should remove for 1.17
|
||||
if (CarpetClient.shapes != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user