mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Added empty line check
This commit is contained in:
parent
5f26c992ab
commit
8259123d98
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user