diff options
author | syeyoung <cyong06@naver.com> | 2021-08-29 18:56:31 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-08-29 18:56:31 +0900 |
commit | b5f5a1a613ab534e247c8eb04110344e2161d8d3 (patch) | |
tree | a8aad46879c0eeb77a01b3bd61301692705963a8 /src/main/java/kr | |
parent | 9c4eeafc52497d193fe0aeb00c3ec60b296de8ed (diff) | |
download | Skyblock-Dungeons-Guide-b5f5a1a613ab534e247c8eb04110344e2161d8d3.tar.gz Skyblock-Dungeons-Guide-b5f5a1a613ab534e247c8eb04110344e2161d8d3.tar.bz2 Skyblock-Dungeons-Guide-b5f5a1a613ab534e247c8eb04110344e2161d8d3.zip |
- Add fields for non-devenv
Diffstat (limited to 'src/main/java/kr')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java b/src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java index 61ef1907..9ebc138b 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java @@ -44,10 +44,10 @@ public class StyledTextRenderer { LEFT, CENTER, RIGHT } - private static final Method renderChar = ReflectionHelper.findMethod(FontRenderer.class, null, new String[] {"renderChar"}, char.class, boolean.class); + private static final Method renderChar = ReflectionHelper.findMethod(FontRenderer.class, null, new String[] {"renderChar", "func_181559_a"}, char.class, boolean.class); private static final Method doDraw = ReflectionHelper.findMethod(FontRenderer.class, null, new String[] {"doDraw"}, float.class); - private static final Field posX = ReflectionHelper.findField(FontRenderer.class, "posX"); - private static final Field posY = ReflectionHelper.findField(FontRenderer.class, "posY"); + private static final Field posX = ReflectionHelper.findField(FontRenderer.class, "posX", "field_78295_j"); + private static final Field posY = ReflectionHelper.findField(FontRenderer.class, "posY", "field_78296_k"); public static List<StyleTextAssociated> drawTextWithStylesAssociated(List<StyledText> texts, int x, int y,int width, Map<String, TextStyle> styleMap, Alignment alignment) { |