Skip to content

Commit 0d4656d

Browse files
committed
Bug fixes
1 parent 6b662d6 commit 0d4656d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/io/github/hsyyid/adminshop/utils/ConfigManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ public static void readShops()
4646
node.getChildrenMap().forEach((k, v) -> {
4747
try
4848
{
49-
AdminShop.shops.put(UUID.fromString(String.valueOf(k)), v.getValue(TypeToken.of(Shop.class), new Shop()));
49+
if (shopConfig.get().getNode("shops", String.valueOf(k), "signLocation").getValue() != null)
50+
{
51+
AdminShop.shops.put(UUID.fromString(String.valueOf(k)), v.getValue(TypeToken.of(Shop.class), new Shop()));
52+
}
5053
}
5154
catch (ObjectMappingException e)
5255
{

0 commit comments

Comments
 (0)