mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-26 23:23:01 +00:00
Fix inverted config (#710)
This commit is contained in:
1 parent
979ad344a1
commit
0e66bcf42f
3 files changed
+4
-4
No files matched your search
@@ -56,8 +56,8 @@ public class ProgramUniforms {
|
||||
final WorldClient world = Minecraft.getMinecraft().theWorld;
|
||||
if (world != null) {
|
||||
return AngelicaConfig.useTotalWorldTime
|
||||
? world.getWorldTime()
|
||||
: world.getTotalWorldTime();
|
||||
? world.getTotalWorldTime()
|
||||
: world.getWorldTime();
|
||||
} else {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
@@ -160,7 +160,7 @@ public class HardcodedCustomUniforms {
|
||||
|
||||
private static int getWorldDayTime() {
|
||||
final WorldClient world = Minecraft.getMinecraft().theWorld;
|
||||
return (int) ((AngelicaConfig.useTotalWorldTime ? world.getWorldTime() : world.getTotalWorldTime()) % 24000L);
|
||||
return (int) ((AngelicaConfig.useTotalWorldTime ? world.getTotalWorldTime() : world.getWorldTime()) % 24000L);
|
||||
// Level level = Minecraft.getMinecraft().theWorld;
|
||||
// long timeOfDay = level.getDayTime();
|
||||
// long dayTime = ((DimensionTypeAccessor) level.dimensionType()).getFixedTime().orElse(timeOfDay % 24000L);
|
||||
|
||||
@@ -26,7 +26,7 @@ public final class WorldTimeUniforms {
|
||||
|
||||
static int getWorldDayTime() {
|
||||
final WorldClient world = getWorld();
|
||||
return (int) ((AngelicaConfig.useTotalWorldTime ? world.getWorldTime() : world.getTotalWorldTime()) % 24000L);
|
||||
return (int) ((AngelicaConfig.useTotalWorldTime ? world.getTotalWorldTime() : world.getWorldTime()) % 24000L);
|
||||
|
||||
// long dayTime = ((DimensionTypeAccessor) getWorld().dimensionType()).getFixedTime().orElse(timeOfDay % 24000L);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user