mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-11 01:38:07 +02:00
Apply view self disguise when disguised, not just on toggle
This commit is contained in:
parent
7045c5998c
commit
ae5f914286
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user