From b4ed4fb31b1fbf58fa2d210fd6451450e35ced7d Mon Sep 17 00:00:00 2001 From: johni0702 Date: Thu, 16 Jul 2015 16:04:35 +0200 Subject: [PATCH] Fix OffsetGuiRenderer swallowing the shadow flag --- .../de/johni0702/minecraft/gui/OffsetGuiRenderer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/johni0702/minecraft/gui/OffsetGuiRenderer.java b/src/main/java/de/johni0702/minecraft/gui/OffsetGuiRenderer.java index eba3dacd..405c2846 100644 --- a/src/main/java/de/johni0702/minecraft/gui/OffsetGuiRenderer.java +++ b/src/main/java/de/johni0702/minecraft/gui/OffsetGuiRenderer.java @@ -120,21 +120,21 @@ public class OffsetGuiRenderer implements GuiRenderer { @Override public int drawString(int x, int y, int color, String text, boolean shadow) { - return renderer.drawString(x + position.getX(), y + position.getY(), color, text) - position.getX(); + return renderer.drawString(x + position.getX(), y + position.getY(), color, text, shadow) - position.getX(); } @Override public int drawString(int x, int y, ReadableColor color, String text, boolean shadow) { - return renderer.drawString(x + position.getX(), y + position.getY(), color, text) - position.getX(); + return renderer.drawString(x + position.getX(), y + position.getY(), color, text, shadow) - position.getX(); } @Override public int drawCenteredString(int x, int y, int color, String text, boolean shadow) { - return renderer.drawCenteredString(x + position.getX(), y + position.getY(), color, text) - position.getX(); + return renderer.drawCenteredString(x + position.getX(), y + position.getY(), color, text, shadow) - position.getX(); } @Override public int drawCenteredString(int x, int y, ReadableColor color, String text, boolean shadow) { - return renderer.drawCenteredString(x + position.getX(), y + position.getY(), color, text) - position.getX(); + return renderer.drawCenteredString(x + position.getX(), y + position.getY(), color, text, shadow) - position.getX(); } }