mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Let developers construct the watcher themselves
This commit is contained in:
parent
4c81ea1b95
commit
e755ed24db
1 changed files with 7 additions and 3 deletions
|
@ -77,10 +77,14 @@ public class DisguiseAPI {
|
||||||
if (event.isCancelled())
|
if (event.isCancelled())
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (disguise.getWatcher() != null)
|
|
||||||
disguise = disguise.clone();
|
if (disguise.getEntity() != entity) {
|
||||||
|
if (disguise.getWatcher() != null) {
|
||||||
|
disguise = disguise.clone();
|
||||||
|
}
|
||||||
|
disguise.constructWatcher(plugin, entity);
|
||||||
|
}
|
||||||
put(entity, disguise);
|
put(entity, disguise);
|
||||||
disguise.constructWatcher(plugin, entity);
|
|
||||||
refresh(entity);
|
refresh(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue