fix some of iris problems (#183)

This commit is contained in:
Cyl18 authored and GitHub committed 2024-01-13 16:29:25 -08:00
1 parent c211d90faf
commit 84e1fa284b
4 files changed
+7 -9

No files matched your search

@@ -52,7 +52,11 @@ public class ProgramUniforms {
}
private static long getCurrentTick() {
return Objects.requireNonNull(Minecraft.getMinecraft().theWorld).getWorldTime();
if (Minecraft.getMinecraft().theWorld != null) {
return Minecraft.getMinecraft().theWorld.getWorldTime();
} else {
return 0L;
}
}
public void update() {