forked from SteamWar/SteamWar
Implement basic techhider
This commit is contained in:
+4
-2
@@ -60,14 +60,16 @@ public class TechHiderWrapper extends StateDependent implements TechHider.Locati
|
||||
|
||||
public TechHiderWrapper() {
|
||||
super(ENABLED, FightState.Schem);
|
||||
SecretKey key1;
|
||||
techHider = new TechHider(this, Config.ObfuscateWith, Config.HiddenBlocks, Config.HiddenBlockEntities);
|
||||
|
||||
try {
|
||||
key = new SecretKeySpec(Files.readAllBytes(new File(System.getProperty("user.home"), "hullhider.key").toPath()), "AES");
|
||||
key1 = new SecretKeySpec(Files.readAllBytes(new File(System.getProperty("user.home"), "hullhider.key").toPath()), "AES");
|
||||
} catch (IOException e) {
|
||||
throw new SecurityException(e);
|
||||
key1 = new SecretKeySpec(new byte[32], "AES");
|
||||
}
|
||||
|
||||
key = key1;
|
||||
new StateDependentListener(ENABLED, FightState.Schem, this);
|
||||
register();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user