From 8b4a4dd48cee0d0152d0a0e3a89b203127eb26a8 Mon Sep 17 00:00:00 2001 From: fullwall Date: Tue, 19 Nov 2024 05:26:24 +0800 Subject: [PATCH] Don't compute a global npc shop if absent --- main/src/main/java/net/citizensnpcs/trait/shop/StoredShops.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/java/net/citizensnpcs/trait/shop/StoredShops.java b/main/src/main/java/net/citizensnpcs/trait/shop/StoredShops.java index d46a4505f..439a638c7 100644 --- a/main/src/main/java/net/citizensnpcs/trait/shop/StoredShops.java +++ b/main/src/main/java/net/citizensnpcs/trait/shop/StoredShops.java @@ -34,7 +34,7 @@ public class StoredShops { } public NPCShop getGlobalShop(String name) { - return globalShops.computeIfAbsent(name, NPCShop::new); + return globalShops.get(name); } public NPCShop getShop(String name) {