Fix disguises custom name

This commit is contained in:
libraryaddict 2015-10-24 00:48:54 +13:00
parent de9678a20f
commit a450b828b7
1 changed files with 1 additions and 3 deletions

View File

@ -36,19 +36,17 @@ public abstract class DisguiseInsentient extends DisguiseLiving
} }
} }
DataWatcher.watch(10, name);
DataWatcher.watch(2, name); DataWatcher.watch(2, name);
} }
public boolean hasCustomName() public boolean hasCustomName()
{ {
return DataWatcher.getString(10).length() > 0; return DataWatcher.getString(2).length() > 0;
} }
public void setCustomNameVisible(boolean visible) public void setCustomNameVisible(boolean visible)
{ {
DataWatcher.watch(11, Byte.valueOf((byte)(visible ? 1 : 0)));
DataWatcher.watch(3, Byte.valueOf((byte)(visible ? 1 : 0))); DataWatcher.watch(3, Byte.valueOf((byte)(visible ? 1 : 0)));
} }