ratings api
misc-cap
other tweakes
This commit is contained in:
Jesse Boyd
2015-10-27 10:57:34 +11:00
parent 2e79f3d0f8
commit 95feaed870
18 changed files with 504 additions and 163 deletions

View File

@ -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;