Fixed skin layers for Player/Human disguises

This commit is contained in:
xGamingDudex 2016-05-05 10:39:00 +02:00
parent d0e7590b2a
commit 9fca9283e2
1 changed files with 10 additions and 1 deletions

View File

@ -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);