Let developers construct the watcher themselves
This commit is contained in:
parent
4c81ea1b95
commit
e755ed24db
@ -77,10 +77,14 @@ public class DisguiseAPI {
|
|||||||
if (event.isCancelled())
|
if (event.isCancelled())
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (disguise.getWatcher() != null)
|
|
||||||
|
if (disguise.getEntity() != entity) {
|
||||||
|
if (disguise.getWatcher() != null) {
|
||||||
disguise = disguise.clone();
|
disguise = disguise.clone();
|
||||||
put(entity, disguise);
|
}
|
||||||
disguise.constructWatcher(plugin, entity);
|
disguise.constructWatcher(plugin, entity);
|
||||||
|
}
|
||||||
|
put(entity, disguise);
|
||||||
refresh(entity);
|
refresh(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user