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:
@@ -31,8 +31,6 @@ public class ScreenshotRenderer implements RenderInfo {
|
|||||||
Window window = mc.getWindow();
|
Window window = mc.getWindow();
|
||||||
int widthBefore = window.getFramebufferWidth();
|
int widthBefore = window.getFramebufferWidth();
|
||||||
int heightBefore = window.getFramebufferHeight();
|
int heightBefore = window.getFramebufferHeight();
|
||||||
boolean hideGUIBefore = mc.options.hudHidden;
|
|
||||||
mc.options.hudHidden = true;
|
|
||||||
|
|
||||||
ForceChunkLoadingHook clrg = new ForceChunkLoadingHook(mc.worldRenderer);
|
ForceChunkLoadingHook clrg = new ForceChunkLoadingHook(mc.worldRenderer);
|
||||||
|
|
||||||
@@ -46,7 +44,6 @@ public class ScreenshotRenderer implements RenderInfo {
|
|||||||
|
|
||||||
clrg.uninstall();
|
clrg.uninstall();
|
||||||
|
|
||||||
mc.options.hudHidden = hideGUIBefore;
|
|
||||||
resizeMainWindow(mc, widthBefore, heightBefore);
|
resizeMainWindow(mc, widthBefore, heightBefore);
|
||||||
return true;
|
return true;
|
||||||
} catch (OutOfMemoryError e) {
|
} catch (OutOfMemoryError e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user