Merge branch '1.18' into '1.18'

FIx lightmap flicker on pause menu

See merge request jeseibel/minecraft-lod-mod!12
This commit is contained in:
cola98765
2021-12-10 10:39:40 +00:00
@@ -169,6 +169,7 @@ public class MinecraftRenderWrapper implements IMinecraftRenderWrapper
public int[] getLightmapPixels()
{
LightTexture tex = GAME_RENDERER.lightTexture();
tex.tick(); // This call makes no sense, but it fixes pause menu flicker bug
NativeImage lightMapPixels = tex.lightPixels;
LightMapWrapper lightMap = new LightMapWrapper(lightMapPixels);