remove stuff

This commit is contained in:
sirjonasxx 2020-12-29 19:18:49 +01:00
parent 44bd70a6aa
commit c6bfb250c7
3 changed files with 12 additions and 26 deletions

View File

@ -23,8 +23,6 @@
<build>
<plugins>
<!-- this builds a non-standalone JAR file -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>

View File

@ -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 {

View File

@ -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<Integer> {
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());
}
}