Added empty line check

This commit is contained in:
Auxilor 2021-01-23 16:56:46 +00:00
parent 5f26c992ab
commit 8259123d98

View File

@ -60,6 +60,9 @@ public class HoldItemListener implements Listener {
EcoEnchant enchant;
int level;
String[] lineSplit = line.split(" ");
if (lineSplit.length == 0) {
continue;
}
if (lineSplit.length == 1) {
enchant = EcoEnchants.getByName(lineSplit[0]);
level = 1;