From 0e125523f4385b24b63c13b50ad3105708aa6b0b Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 25 Dec 2021 17:48:10 +1300 Subject: [PATCH] Fix isUpsideDown when constructing a disguise with a premade skin --- .../java/me/libraryaddict/disguise/disguisetypes/Disguise.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index f3051622..6883a624 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -365,7 +365,7 @@ public abstract class Disguise { } public boolean isUpsideDown() { - return getWatcher().isUpsideDown(); + return getWatcher() != null && getWatcher().isUpsideDown(); } public Disguise setUpsideDown(boolean upsideDown) {