mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 21:57:40 +00:00
Glow can be disabled/enabled on skin overlays
This commit is contained in:
1 parent
dbfbab7be2
commit
6f9358c1ca
9 files changed
+91
-20
No files matched your search
@@ -527,13 +527,14 @@ public class ScriptPlayer<T extends EntityPlayerMP> extends ScriptLivingBase<T>
|
||||
Server.sendData((EntityPlayerMP)this.entity, EnumPacketClient.OVERLAY_CLOSE, id, new NBTTagCompound());
|
||||
}
|
||||
|
||||
public void addSkinOverlay(int id, String overlayString) {
|
||||
if (overlayString != null) {
|
||||
public void setSkinOverlay(int id, ScriptSkinOverlay overlay) {
|
||||
if (overlay != null) {
|
||||
NBTTagCompound data = new NBTTagCompound();
|
||||
NBTTagCompound compound = new NBTTagCompound();
|
||||
|
||||
compound.setString("SkinOverlayTexture", overlayString);
|
||||
compound.setInteger("SkinOverlayID", id);
|
||||
compound.setString("SkinOverlayTexture", overlay.getTexture());
|
||||
compound.setBoolean("SkinOverlayGlow", overlay.getGlow());
|
||||
|
||||
if (!player.getEntityData().hasKey("SkinOverlayData")) {
|
||||
NBTTagList tagList = new NBTTagList();
|
||||
|
||||
Reference in new issue
Block a user