mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-01 13:14:43 +02:00
Changes
ratings api misc-cap other tweakes
This commit is contained in:
@ -524,6 +524,7 @@ public class MainUtil {
|
||||
final boolean result = EventUtil.manager.callUnlink(plot.world, ids);
|
||||
if (!result) {
|
||||
return false;
|
||||
}
|
||||
plot.clearRatings();
|
||||
if (createSign) {
|
||||
plot.removeSign();
|
||||
@ -1010,6 +1011,8 @@ public class MainUtil {
|
||||
lesserPlot = greaterPlot;
|
||||
greaterPlot = tmp;
|
||||
}
|
||||
if (!lesserPlot.getMerged(2)) {
|
||||
lesserPlot.clearRatings();
|
||||
greaterPlot.clearRatings();
|
||||
lesserPlot.setMerged(2, true);
|
||||
greaterPlot.setMerged(0, true);
|
||||
@ -1032,6 +1035,8 @@ public class MainUtil {
|
||||
lesserPlot = greaterPlot;
|
||||
greaterPlot = tmp;
|
||||
}
|
||||
if (!lesserPlot.getMerged(1)) {
|
||||
lesserPlot.clearRatings();
|
||||
greaterPlot.clearRatings();
|
||||
lesserPlot.setMerged(1, true);
|
||||
greaterPlot.setMerged(3, true);
|
||||
@ -1379,7 +1384,7 @@ public class MainUtil {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static int[] countEntities(Plot plot) {
|
||||
public static int[] countEntities(Plot plot) {
|
||||
int[] count = new int[6];
|
||||
for (Plot current : getConnectedPlots(plot)) {
|
||||
int[] result = ChunkManager.manager.countEntities(current);
|
||||
@ -1387,6 +1392,7 @@ public class MainUtil {
|
||||
count[1] += result[1];
|
||||
count[2] += result[2];
|
||||
count[3] += result[3];
|
||||
count[4] += result[4];
|
||||
count[5] += result[5];
|
||||
}
|
||||
return count;
|
||||
|
Reference in New Issue
Block a user