Added custom name to wither disguise.

This commit is contained in:
Jonathan Williams 2014-11-15 01:12:58 -08:00
parent 2cf76ae5b4
commit 685a2899ca

View File

@ -1,6 +1,7 @@
package mineplex.core.disguise.disguises;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.LivingEntity;
public class DisguiseWither extends DisguiseMonster
{
@ -8,6 +9,8 @@ public class DisguiseWither extends DisguiseMonster
{
super(EntityType.WITHER, entity);
DataWatcher.a(11, new Byte((byte) 1));
DataWatcher.a(10, new String(((LivingEntity)entity).getCustomName()));
DataWatcher.a(17, new Integer(0));
DataWatcher.a(18, new Integer(0));
DataWatcher.a(19, new Integer(0));