From 9fca9283e2d47e9cc5862ffe3146648f4f6f0418 Mon Sep 17 00:00:00 2001 From: xGamingDudex Date: Thu, 5 May 2016 10:39:00 +0200 Subject: [PATCH] Fixed skin layers for Player/Human disguises --- .../core/disguise/disguises/DisguiseHuman.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/disguise/disguises/DisguiseHuman.java b/Plugins/Mineplex.Core/src/mineplex/core/disguise/disguises/DisguiseHuman.java index 6ef6f1cf1..5a42eb867 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/disguise/disguises/DisguiseHuman.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/disguise/disguises/DisguiseHuman.java @@ -7,8 +7,17 @@ public abstract class DisguiseHuman extends DisguiseLiving public DisguiseHuman(org.bukkit.entity.Entity entity) { super(entity); + + byte skin = 0; + skin |= (1 << 0); //Enable Cape + skin |= (1 << 1); //Enable Jacket + skin |= (1 << 2); //Enable Left Sleeve + skin |= (1 << 3); //Enable Right Sleeve + skin |= (1 << 4); //Enable Left Pants + skin |= (1 << 5); //Enable Right Pants + skin |= (1 << 6); //Enable Hat - DataWatcher.a(10, (byte) 0, EntityHuman.META_SKIN, (byte) 0); // todo + DataWatcher.a(10, (byte) skin, EntityHuman.META_SKIN, (byte) skin); DataWatcher.a(16, (byte) 1, EntityHuman.META_CAPE, (byte) 1); DataWatcher.a(17, Float.valueOf(0.0F), EntityHuman.META_SCALED_HEALTH, 0f); DataWatcher.a(18, Integer.valueOf(0), EntityHuman.META_SCORE, 0);