Cancel itself not object

This commit is contained in:
libraryaddict 2020-06-20 07:59:16 +12:00
parent a81b3b1d5f
commit 53051668af
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -419,7 +419,7 @@ public abstract class Disguise {
@Override
public void run() {
if (!isDisguiseInUse() || getEntity() == null) {
runnable.cancel();
cancel();
runnable = null;
return;
}