diff --git a/G-Earth/pom.xml b/G-Earth/pom.xml index 2f26caa..8aec450 100644 --- a/G-Earth/pom.xml +++ b/G-Earth/pom.xml @@ -23,8 +23,6 @@ - - org.apache.maven.plugins diff --git a/G-Earth/src/main/java/gearth/Main.java b/G-Earth/src/main/java/gearth/Main.java index bc6a209..745b1db 100644 --- a/G-Earth/src/main/java/gearth/Main.java +++ b/G-Earth/src/main/java/gearth/Main.java @@ -57,17 +57,17 @@ public class Main extends Application { System.exit(0); }); - new Thread(() -> { - if (!AdminValidator.isAdmin()) { - Platform.runLater(() -> { - Alert alert = new Alert(Alert.AlertType.ERROR, "G-Earth needs admin privileges in order to work properly, please restart G-Earth with admin permissions unless you know what you're doing", ButtonType.OK); - alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE); - alert.setResizable(false); - alert.show(); - }); - - } - }).start(); +// new Thread(() -> { +// if (!AdminValidator.isAdmin()) { +// Platform.runLater(() -> { +// Alert alert = new Alert(Alert.AlertType.ERROR, "G-Earth needs admin privileges in order to work properly, please restart G-Earth with admin permissions unless you know what you're doing", ButtonType.OK); +// alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE); +// alert.setResizable(false); +// alert.show(); +// }); +// +// } +// }).start(); new Thread(() -> { try { diff --git a/G-Earth/src/main/java/gearth/misc/packetrepresentation/prediction/checkers/IntegerChecker.java b/G-Earth/src/main/java/gearth/misc/packetrepresentation/prediction/checkers/IntegerChecker.java index 72ade6a..d34c0a3 100644 --- a/G-Earth/src/main/java/gearth/misc/packetrepresentation/prediction/checkers/IntegerChecker.java +++ b/G-Earth/src/main/java/gearth/misc/packetrepresentation/prediction/checkers/IntegerChecker.java @@ -1,6 +1,7 @@ package gearth.misc.packetrepresentation.prediction.checkers; import gearth.protocol.HPacket; +import gearth.services.Constants; import java.nio.charset.StandardCharsets; @@ -100,17 +101,4 @@ public class IntegerChecker extends TypeChecker { int nextIndexSafe(int index) { return index + 4; } - - public static void main(String[] args) { - HPacket packet = new HPacket("{l}{h:901}{b:false}{b:9}{i:0}{i:20064977}"); -// System.out.println(new IntegerChecker(packet).score(30)); -// System.out.println(new IntegerChecker(packet).score(26)); -// System.out.println(new StringChecker(packet).score(30)); - - TypeCheckerProducer.UNITY_PACKETS = true; - - System.out.println(new LongChecker(packet).score(8)); - - System.out.println(packet.toExpression()); - } }