This commit is contained in:
ThisIsALegitUsername 2023-03-07 03:34:12 +00:00
parent 5564600a94
commit fb7332d378
5 changed files with 14435 additions and 14433 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -657,11 +657,13 @@ public class EntityRenderer implements IResourceManagerReloadListener {
} }
public void enableLightmap() { public void enableLightmap() {
if(!ModManager.fpsOptions.lightUpdates.getValue() || !ModManager.fullbright.isEnabled()){ if(!ModManager.fpsOptions.lightUpdates.getValue() || !ModManager.fullbright.isEnabled())
return;
GlStateManager.setActiveTexture(OpenGlHelper.lightmapTexUnit); GlStateManager.setActiveTexture(OpenGlHelper.lightmapTexUnit);
GlStateManager.enableTexture2D(); GlStateManager.enableTexture2D();
GlStateManager.setActiveTexture(OpenGlHelper.defaultTexUnit); GlStateManager.setActiveTexture(OpenGlHelper.defaultTexUnit);
}
} }
/**+ /**+

View File

@ -79,6 +79,8 @@ public class Timer {
this.elapsedPartialTicks = (float) ((double) this.elapsedPartialTicks + d2 * (double) this.timerSpeed * (double) this.ticksPerSecond); this.elapsedPartialTicks = (float) ((double) this.elapsedPartialTicks + d2 * (double) this.timerSpeed * (double) this.ticksPerSecond);
this.elapsedTicks = (int) this.elapsedPartialTicks; this.elapsedTicks = (int) this.elapsedPartialTicks;
this.elapsedPartialTicks -= (float) this.elapsedTicks; this.elapsedPartialTicks -= (float) this.elapsedTicks;
this.elapsedPartialTicks = (float) Math.round(this.elapsedPartialTicks * 100) / 100.0f;
if (this.elapsedTicks > 10) { if (this.elapsedTicks > 10) {
this.elapsedTicks = 10; this.elapsedTicks = 10;
} }