Don't compute a global npc shop if absent

This commit is contained in:
fullwall 2024-11-19 05:26:24 +08:00
parent 2c25291676
commit 8b4a4dd48c

View File

@ -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) {