Fix NullPointerException when creating shop

This commit is contained in:
sandtechnology committed 2021-07-09 18:40:27 +08:00
1 parent fa69a09b32
commit 46026740a5
1 file changed
+1 -1
@@ -689,7 +689,7 @@ public class ContainerShop implements Shop {
for (int i = 0; i < lines.length; i++) {
sign.setLine(i, lines[i]);
}
if (plugin.getGameVersion().isSignTextDyeSupport()) {
if (plugin.getGameVersion().isSignTextDyeSupport() && dyeColor != null) {
sign.setColor(dyeColor);
}
if (signGlowing && plugin.getGameVersion().isSignGlowingSupport()) {