From 129268454fd5957e2a407e94307127f1f49b2e98 Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Sun, 5 Mar 2023 00:30:23 +0000 Subject: [PATCH] even more fps options --- .../java/net/minecraft/client/multiplayer/WorldClient.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/client/multiplayer/WorldClient.java b/src/main/java/net/minecraft/client/multiplayer/WorldClient.java index 7ce2d198..7ca28321 100644 --- a/src/main/java/net/minecraft/client/multiplayer/WorldClient.java +++ b/src/main/java/net/minecraft/client/multiplayer/WorldClient.java @@ -1,6 +1,9 @@ package net.minecraft.client.multiplayer; import com.google.common.collect.Sets; + +import dev.resent.module.base.ModManager; + import java.util.Set; import java.util.concurrent.Callable; import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom; @@ -276,9 +279,9 @@ public class WorldClient extends World { ItemStack itemstack = this.mc.thePlayer.getHeldItem(); boolean flag = this.mc.playerController.getCurrentGameType() == WorldSettings.GameType.CREATIVE && itemstack != null && Block.getBlockFromItem(itemstack.getItem()) == Blocks.barrier; BlockPos.MutableBlockPos blockpos$mutableblockpos = new BlockPos.MutableBlockPos(); - int + int ratio = ModManager.fpsOptions.isEnabled() && ModManager.fpsOptions.lowTick.getValue() ? 100 : 1000; - for (int i = 0; i < 1000; ++i) { + for (int i = 0; i < ratio; ++i) { int j = parInt1 + this.rand.nextInt(b0) - this.rand.nextInt(b0); int k = parInt2 + this.rand.nextInt(b0) - this.rand.nextInt(b0); int l = parInt3 + this.rand.nextInt(b0) - this.rand.nextInt(b0);