mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-26 18:39:43 -05:00
Improve Method
This commit is contained in:
1 parent
0a2a0f1b1f
commit
3f9dafafec
1 file changed
+4
-1
@@ -60,7 +60,7 @@ public class ConfigSection {
|
||||
sectionLines.add("");
|
||||
|
||||
} catch (Exception exception) {
|
||||
Logger.warning("Failed to read file input!");
|
||||
Logger.warning("Failed to read file input! (#1)");
|
||||
exception.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -71,6 +71,9 @@ public class ConfigSection {
|
||||
String lineText = StringUtils.getLineText(lines, line);
|
||||
if(lineText != null && !lineText.isEmpty()) return false;
|
||||
|
||||
lineText = StringUtils.getLineText(lines, line-1);
|
||||
if(lineText != null && lineText.startsWith(" ")) return false;
|
||||
|
||||
lineText = StringUtils.getLineText(lines, line+1);
|
||||
return lineText == null || !lineText.startsWith(" ");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user