From a1475c1c52256117d7d1999a41b06e2bcc071653 Mon Sep 17 00:00:00 2001 From: Leandro Date: Sun, 4 Jul 2021 23:14:08 -0300 Subject: [PATCH] Fix previous commit. --- src/main/java/tsp/headdb/inventory/InventoryUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tsp/headdb/inventory/InventoryUtils.java b/src/main/java/tsp/headdb/inventory/InventoryUtils.java index afd068a..2fcf2bb 100644 --- a/src/main/java/tsp/headdb/inventory/InventoryUtils.java +++ b/src/main/java/tsp/headdb/inventory/InventoryUtils.java @@ -33,7 +33,7 @@ public class InventoryUtils { // Try to get the value from the config file. if (HeadDB.getInstance().getCfg().contains("ui.category." + category + ".location")) { uiLocation.put(category, HeadDB.getInstance().getCfg().getInt("ui.category." + category + ".location")); - uiLocation.get(category); + return uiLocation.get(category); } // No valid value in the config file, return the given default.