From 111acda3885892585a4fbe04783dbb7c519e9ce3 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 11 May 2020 04:48:38 +1200 Subject: [PATCH] Don't allow setting if upside down --- .../libraryaddict/disguise/disguisetypes/PlayerDisguise.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java index 6bdffb5c..e79db310 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java @@ -116,6 +116,10 @@ public class PlayerDisguise extends TargetedDisguise { } private void setScoreboardName(String[] split) { + if (isUpsideDown()) { + return; + } + getScoreboardName().setSplit(split); }