mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-29 20:24:43 +02:00
Optimized plot sorting
This commit is contained in:
@ -317,19 +317,5 @@ public class BukkitSchematicHandler extends SchematicHandler {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// end async
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// create schematic one chunk at a time
|
||||
// load chunk sync
|
||||
// get blocks async
|
||||
// add to schematic async
|
||||
// save final async
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,6 +17,13 @@ public class MathMan {
|
||||
return count / array.length;
|
||||
}
|
||||
|
||||
public static int getPositiveId(int i) {
|
||||
if (i < 0) {
|
||||
return -i*2 - 1;
|
||||
}
|
||||
return i * 2;
|
||||
}
|
||||
|
||||
public static double getSD(double[] array, double av) {
|
||||
double sd = 0;
|
||||
for (int i=0; i<array.length;i++)
|
||||
|
@ -363,7 +363,6 @@ public abstract class SchematicHandler {
|
||||
// }
|
||||
// result.append(buffer, 0, r);
|
||||
// }
|
||||
// System.out.print(result.toString() + " | " + result.length());
|
||||
// if (!result.equals("The file plot.schematic has been uploaded.")) {
|
||||
// return null;
|
||||
// }
|
||||
|
@ -40,4 +40,9 @@ public class StringMan {
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static boolean isEqual(String a, String b ) {
|
||||
return (a == b || (a.length() == b.length() && a.hashCode() == b.hashCode() && a.equals(b)));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user