Apply view self disguise when disguised, not just on toggle

This commit is contained in:
libraryaddict 2017-07-11 17:38:27 +12:00
parent 7045c5998c
commit ae5f914286

View File

@ -161,6 +161,11 @@ public class DisguiseAPI {
if (entity == null || disguise == null) {
return;
}
if (entity instanceof Player) {
disguise.setViewSelfDisguise(DisguiseAPI.isViewSelfToggled(entity));
}
// The event wasn't cancelled.
// If the disguise entity isn't the same as the one we are disguising
if (disguise.getEntity() != entity) {