mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 00:40:51 +01:00
remove stuff
This commit is contained in:
parent
44bd70a6aa
commit
c6bfb250c7
@ -23,8 +23,6 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
|
||||
<!-- this builds a non-standalone JAR file -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
@ -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 {
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user