From 48f8d1884e958606b374a71dc16ec27734a2256e Mon Sep 17 00:00:00 2001 From: Alexander Noyle Date: Wed, 22 Jul 2026 16:29:23 -0400 Subject: [PATCH] Skip virtual display check when displays are disabled --- .../quickshop/util/envcheck/EnvironmentChecker.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/envcheck/EnvironmentChecker.java b/quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/envcheck/EnvironmentChecker.java index edd6ff650..c5629a425 100644 --- a/quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/envcheck/EnvironmentChecker.java +++ b/quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/envcheck/EnvironmentChecker.java @@ -510,6 +510,18 @@ public final class EnvironmentChecker { @EnvCheckEntry(name = "Virtual DisplayItem Support Test", priority = 7, stage = EnvCheckEntry.Stage.AFTER_ON_ENABLE) public ResultContainer virtualDisplayWorkingTest() { + if (!plugin.isDisplayEnabled()) { + + return new ResultContainer(CheckResult.PASSED, "The display are disabled."); + + } + + if (AbstractDisplayItem.getNowUsing() != DisplayType.VIRTUALITEM) { + + return new ResultContainer(CheckResult.PASSED, "The display type is not virtual item."); + + } + if (plugin.getVirtualDisplayItemManager() == null) { AbstractDisplayItem.setVirtualDisplayDoesntWork(true); -- 2.47.3