Update LevelRenderer.java

master
PF94 2020-11-24 01:51:06 -05:00
parent 7eb8935616
commit 621fc1c597
1 changed files with 6 additions and 5 deletions

View File

@ -6,7 +6,7 @@ package com.mojang.minecraft.level;
import com.mojang.minecraft.HitResult;
import com.mojang.minecraft.phys.AABB;
//import com.mojang.minecraft.a.a;
import com.mojang.minecraft.a.a;
import com.mojang.minecraft.level.tile.Tile;
import com.mojang.minecraft.renderer.Frustum;
import java.util.Collections;
@ -95,7 +95,8 @@ public class LevelRenderer implements LevelListener
}
}
/* public final void a(float n) {
//clouds do not work because deobfuscating is hard.
/* public final void a(float n) {
GL11.glEnable(3553);
GL11.glBindTexture(3553, this.textures.loadTexture("/clouds.png", 9728));
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
@ -106,7 +107,7 @@ public class LevelRenderer implements LevelListener
a.b();
for (int i = -2048; i < this.a.width + 2048; i += 512) {
for (int j = -2048; j < this.a.height + 2048; j += 512) {
a.a((float)i, n3, (float)(j + 512), i * n2 + n, (j + 512) * n2);
this.textures.loadTexture((float)i, n3, (float)(j + 512), i * n2 + n, (j + 512) * n2);
a.a((float)(i + 512), n3, (float)(j + 512), (i + 512) * n2 + n, (j + 512) * n2);
a.a((float)(i + 512), n3, (float)j, (i + 512) * n2 + n, j * n2);
a.a((float)i, n3, (float)j, i * n2 + n, j * n2);
@ -114,9 +115,9 @@ public class LevelRenderer implements LevelListener
a.a((float)(i + 512), n3, (float)j, (i + 512) * n2 + n, j * n2);
a.a((float)(i + 512), n3, (float)(j + 512), (i + 512) * n2 + n, (j + 512) * n2);
a.a((float)i, n3, (float)(j + 512), i * n2 + n, (j + 512) * n2);
}
}
*/
}*/
public List<Chunk> getAllDirtyChunks() {
ArrayList<Chunk> dirty = null;
for (int i = 0; i < this.chunks.length; ++i) {