mirror of
https://github.com/songoda/EpicFurnaces.git
synced 2024-12-02 23:03:36 +01:00
Update Locale.java
Should fix most "invalid line" warns, caused by empty lines filled with just a space.
This commit is contained in:
parent
db951a879f
commit
11cbc48a86
@ -358,7 +358,7 @@ public class Locale {
|
|||||||
try (BufferedReader reader = new BufferedReader(new FileReader(file))) {
|
try (BufferedReader reader = new BufferedReader(new FileReader(file))) {
|
||||||
String line;
|
String line;
|
||||||
for (int lineNumber = 0; (line = reader.readLine()) != null; lineNumber++) {
|
for (int lineNumber = 0; (line = reader.readLine()) != null; lineNumber++) {
|
||||||
if (line.isEmpty() || line.startsWith("#") /* Comment */) continue;
|
if (line.trim().isEmpty() || line.startsWith("#") /* Comment */) continue;
|
||||||
|
|
||||||
Matcher matcher = NODE_PATTERN.matcher(line);
|
Matcher matcher = NODE_PATTERN.matcher(line);
|
||||||
if (!matcher.find()) {
|
if (!matcher.find()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user