1.20.4
This commit is contained in:
parent
b84aac97b2
commit
08031c32ba
9 changed files with 38 additions and 26 deletions
|
@ -24,7 +24,7 @@ public class Moonlight implements ModInitializer
|
|||
public static final Moonlight INSTANCE = new Moonlight();
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger("Moonlight");
|
||||
public static final String clientTag = ColorUtils.aqua + "Moonlight Meadows";
|
||||
public static final String versionTag = ColorUtils.magenta + "v0.1.0";
|
||||
public static final String versionTag = ColorUtils.magenta + "v0.1.1";
|
||||
public static Config CONFIG = new Config();
|
||||
public static int uiColorA = 0xFF55FFFF;
|
||||
public static int uiColor = 0x55FFFF;
|
||||
|
|
|
@ -19,7 +19,7 @@ public class Timer extends Module
|
|||
public void onEnable()
|
||||
{
|
||||
super.onEnable();
|
||||
mc.renderTickCounter = new RenderTickCounter((float)(20.0*speed.value), 0L);
|
||||
mc.renderTickCounter = new RenderTickCounter((float)(20.0*speed.value), 0L, this::targetTickRate);
|
||||
current = speed.value;
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,12 @@ public class Timer extends Module
|
|||
public void onDisable()
|
||||
{
|
||||
super.onDisable();
|
||||
mc.renderTickCounter = new RenderTickCounter(20.0f, 0L);
|
||||
mc.renderTickCounter = new RenderTickCounter(20.0f, 0L, this::targetTickRate);
|
||||
}
|
||||
|
||||
public float targetTickRate(float millis)
|
||||
{
|
||||
if(!enabled) return 50.0f;
|
||||
return (float)(50.0/speed.value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "moonlight",
|
||||
"version": "${version}",
|
||||
"version": "v0.1.1",
|
||||
|
||||
"name": "Moonlight Meadows",
|
||||
"description": "Utility mod with a focus on stability.",
|
||||
|
@ -29,7 +29,7 @@
|
|||
],
|
||||
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.21",
|
||||
"fabricloader": ">=0.15.1",
|
||||
"fabric-api": "*",
|
||||
"minecraft": "~1.20",
|
||||
"java": ">=17"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue