Code cleanup
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user