Fixed reflection in the CapeEventHandler
This commit is contained in:
parent
6bb19661ab
commit
1b15a95eed
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ public class CapeEventHandler
|
||||||
|
|
||||||
capePlayers.add(abstractClientPlayer);
|
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();
|
new Thread(new CloakThread(abstractClientPlayer, cloakURL)).start();
|
||||||
event.renderCape = true;
|
event.renderCape = true;
|
||||||
|
@ -139,7 +139,7 @@ public class CapeEventHandler
|
||||||
cape.getHeight(null), BufferedImage.TYPE_INT_ARGB);
|
cape.getHeight(null), BufferedImage.TYPE_INT_ARGB);
|
||||||
bo.getGraphics().drawImage(cape, 0, 0, null);
|
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)
|
catch (MalformedURLException e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue