Code cleanup

This commit is contained in:
Anuken
2019-03-24 19:58:51 -04:00
parent bb9573b85a
commit 97f5bf3cc4
14 changed files with 42 additions and 28 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ task scaleSprites4x(){
J = getRGB(x, y + 2),
K = getRGB(x - 2, y),
L = getRGB(x + 2, y),
M = getRGB(x, y - 2);
M = getRGB(x, y - 2)
if (B==D && B!=F && D!=H && (E!=A || E==C || E==G || A==J || A==K)) p1 = B
if (B==F & B!=D & F!=H && (E!=C || E==A || E==I || C==J || C==L)) p2 = F
@@ -30,7 +30,7 @@ public class BundleLauncher {
Log.info("Parsing bundle: {0}", child);
OrderedMap<String, String> other = new OrderedMap<>();
PropertiesUtils.load(other, Files.newBufferedReader(child, StandardCharsets.UTF_8));
PropertiesUtils.load(other, Files.newBufferedReader(child, Strings.utf8));
removals.clear();
for(String key : other.orderedKeys()){
@@ -68,7 +68,7 @@ public class BundleLauncher {
other.remove(key);
}
Files.write(child, result.toString().getBytes(StandardCharsets.UTF_8));
Files.write(child, result.toString().getBytes(Strings.utf8));
}catch (IOException e){
throw new RuntimeException(e);