Fix disguises custom name
This commit is contained in:
parent
de9678a20f
commit
a450b828b7
@ -36,19 +36,17 @@ public abstract class DisguiseInsentient extends DisguiseLiving
|
||||
}
|
||||
}
|
||||
|
||||
DataWatcher.watch(10, name);
|
||||
DataWatcher.watch(2, name);
|
||||
}
|
||||
|
||||
|
||||
public boolean hasCustomName()
|
||||
{
|
||||
return DataWatcher.getString(10).length() > 0;
|
||||
return DataWatcher.getString(2).length() > 0;
|
||||
}
|
||||
|
||||
public void setCustomNameVisible(boolean visible)
|
||||
{
|
||||
DataWatcher.watch(11, Byte.valueOf((byte)(visible ? 1 : 0)));
|
||||
DataWatcher.watch(3, Byte.valueOf((byte)(visible ? 1 : 0)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user