From 1b15a95eed7546f1bd8a00544a138a9000fbfa8c Mon Sep 17 00:00:00 2001 From: Adubbz Date: Fri, 6 Jun 2014 06:16:17 +1000 Subject: [PATCH] Fixed reflection in the CapeEventHandler --- .../common/eventhandler/misc/CapeEventHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/biomesoplenty/common/eventhandler/misc/CapeEventHandler.java b/src/main/java/biomesoplenty/common/eventhandler/misc/CapeEventHandler.java index b937ccad6..090e3dce7 100644 --- a/src/main/java/biomesoplenty/common/eventhandler/misc/CapeEventHandler.java +++ b/src/main/java/biomesoplenty/common/eventhandler/misc/CapeEventHandler.java @@ -65,7 +65,7 @@ public class CapeEventHandler capePlayers.add(abstractClientPlayer); - ReflectionHelper.setPrivateValue(ThreadDownloadImageData.class, abstractClientPlayer.getTextureCape(), false, new String[]{"textureUploaded", "textureUploaded"}); + ReflectionHelper.setPrivateValue(ThreadDownloadImageData.class, abstractClientPlayer.getTextureCape(), false, new String[]{"textureUploaded", "field_110559_g"}); new Thread(new CloakThread(abstractClientPlayer, cloakURL)).start(); event.renderCape = true; @@ -139,7 +139,7 @@ public class CapeEventHandler cape.getHeight(null), BufferedImage.TYPE_INT_ARGB); bo.getGraphics().drawImage(cape, 0, 0, null); - ReflectionHelper.setPrivateValue(ThreadDownloadImageData.class, abstractClientPlayer.getTextureCape(), bo, new String[] { "bufferedImage", "bufferedImage" }); + ReflectionHelper.setPrivateValue(ThreadDownloadImageData.class, abstractClientPlayer.getTextureCape(), bo, new String[] { "bufferedImage", "field_110560_d" }); } catch (MalformedURLException e) {