Fix nametags not rendering in screenhots (fixes #498)

No clue why this extra hud hiding was even there in the first place, the
renderer already takes care of properly hiding the hud (without hiding the
nametags) as it does for videos as well.
This commit is contained in:
Jonas Herzig
2021-08-15 11:19:52 +02:00
parent 4a587eed74
commit 110199044f

View File

@@ -31,8 +31,6 @@ public class ScreenshotRenderer implements RenderInfo {
Window window = mc.getWindow();
int widthBefore = window.getFramebufferWidth();
int heightBefore = window.getFramebufferHeight();
boolean hideGUIBefore = mc.options.hudHidden;
mc.options.hudHidden = true;
ForceChunkLoadingHook clrg = new ForceChunkLoadingHook(mc.worldRenderer);
@@ -46,7 +44,6 @@ public class ScreenshotRenderer implements RenderInfo {
clrg.uninstall();
mc.options.hudHidden = hideGUIBefore;
resizeMainWindow(mc, widthBefore, heightBefore);
return true;
} catch (OutOfMemoryError e) {