mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-11 04:54:28 +01:00
things actually pause when paused
This commit is contained in:
parent
03205c277b
commit
64b5683ac4
@ -7,12 +7,16 @@ public class AnimationTickHolder {
|
||||
public static int ticks;
|
||||
|
||||
public static void tick() {
|
||||
ticks++;
|
||||
if (!Minecraft.getInstance().isGamePaused()) ticks++;
|
||||
}
|
||||
|
||||
public static float getRenderTick() {
|
||||
return ticks + getPartialTicks();
|
||||
}
|
||||
|
||||
public static float getPartialTicks() {
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
return ticks + (mc.isGamePaused() ? mc.renderPartialTicksPaused : mc.getRenderPartialTicks());
|
||||
return (mc.isGamePaused() ? mc.renderPartialTicksPaused : mc.getRenderPartialTicks());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user