mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 03:30:02 +00:00
Apply view self disguise when disguised, not just on toggle
This commit is contained in:
parent
7045c5998c
commit
ae5f914286
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue