mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-11 06:45:49 +00:00
finished implementing clusters in SQL
This commit is contained in:
parent
72713995cd
commit
6608004337
3 changed files with 228 additions and 27 deletions
|
@ -13,7 +13,7 @@ public class ClusterManager {
|
|||
private static PlotCluster last;
|
||||
|
||||
public static boolean contains(PlotCluster cluster, PlotId id) {
|
||||
if (cluster.pos1.x <= id.x && cluster.pos1.y <= id.y && cluster.pos2.x >= id.x && cluster.pos2.y >= id.y) {
|
||||
if (cluster.getP1().x <= id.x && cluster.getP1().y <= id.y && cluster.getP2().x >= id.x && cluster.getP2().y >= id.y) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -53,6 +53,6 @@ public class ClusterManager {
|
|||
}
|
||||
|
||||
public static PlotClusterId getClusterId(PlotCluster cluster) {
|
||||
return new PlotClusterId(cluster.pos1, cluster.pos2);
|
||||
return new PlotClusterId(cluster.getP1(), cluster.getP2());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue