Jump to content

[1.7.10] resetting normal skin LEXMANOS please read


Alesimula

Recommended Posts

I know i'm just asking for modding help and even if it isn't REALLY complicated it is a bit.

 

in my mod i use a code in the event RenderPlayerEvent.Pre wich changes player texture:

 

mainTexture.set((EntityPlayer)thePlayer, new ResourceLocation("textures/entity/player/Glacia/snowman.png"));

 

where mainTexture is locationSkin of AbstractClientPlayer wich i change using reflection.

The problem is when setting it back to normal: in 1.7.2 i used this code

 

mainTexture.set(thePlayer, ((AbstractClientPlayer) thePlayer).getLocationSkin(((AbstractClientPlayer) thePlayer).getCommandSenderName()));

 

wich in 1.7.10 no longer works and sets a missing texture (purple and black) with the error "skins\whatever.png" cannot be found

 

if i set it to null it will set steve skin and not the custom skin the player has (while the code i used did in 1.7.2)

 

Is there a way to do that now?

 

PS:sorry for the little bad english

Actually i don't know what to write in this signature soooo.... anyway

Link to comment
Share on other sites

Does the requested skin exist in the correct location?

 

Please post more info, such as your folder structure, context-relevant code and -error log.

 

((AbstractClientPlayer) thePlayer).getLocationSkin(((AbstractClientPlayer) thePlayer).getCommandSenderName())

 

this should get the skin player is using (Standartd steve's one or custom one) and infact it did in 1.7.2, now it doesn't work anymore

 

the location where minecraft looks for the skin is skins\username

Actually i don't know what to write in this signature soooo.... anyway

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.