Check for empty not null. It's never null.

This commit is contained in:
Brianna 2020-04-27 07:44:57 -04:00
parent 7cd8920159
commit 5080428db2

View File

@ -38,7 +38,7 @@ public class StackableManager {
FileConfiguration configLoad = config.getFileConfiguration();
List<String> stackableList = configLoad.getStringList("Stackables");
if (stackableList == null) return;
if (stackableList.isEmpty()) return;
for (String stackableStr : stackableList) {
try {