SteamWar/BauSystem
Archiviert
13
0

ScriptSystemImprovements #209

Manuell gemergt
YoyoNow hat 6 Commits von ScriptSystemImprovements nach master 2021-04-01 18:31:31 +02:00 zusammengeführt
Nur Änderungen aus Commit b95ecb93b0 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -114,6 +114,7 @@ public class ScriptListener implements Listener {
for (String page : bookMeta.getPages()) { for (String page : bookMeta.getPages()) {
for (String command : page.split("\n")) { for (String command : page.split("\n")) {
command = command.replaceAll(" +", " ");
if (command.startsWith("#") || command.trim().isEmpty()) continue; if (command.startsWith("#") || command.trim().isEmpty()) continue;
if (command.startsWith(".")) { if (command.startsWith(".")) {
jumpPoints.put(command.substring(1), commands.size()); jumpPoints.put(command.substring(1), commands.size());