Lazy initialization

This commit is contained in:
boy0001
2015-07-22 04:31:12 +10:00
parent 59c672d9a8
commit 95ad199f52
37 changed files with 263 additions and 207 deletions

View File

@ -101,13 +101,13 @@ public abstract class HybridUtils {
if (result) {
if (id1 != null) {
final Plot p1 = MainUtil.getPlot(world, id1);
if ((p1 != null) && p1.hasOwner() && p1.settings.isMerged()) {
if ((p1 != null) && p1.hasOwner() && p1.getSettings().isMerged()) {
toCheck = true;
}
}
if ((id2 != null) && !toCheck) {
final Plot p2 = MainUtil.getPlot(world, id2);
if ((p2 != null) && p2.hasOwner() && p2.settings.isMerged()) {
if ((p2 != null) && p2.hasOwner() && p2.getSettings().isMerged()) {
toCheck = true;
}
}

View File

@ -130,7 +130,7 @@ public abstract class SquarePlotManager extends GridPlotManager {
if (plot == null) {
return null;
}
if ((plot.settings.getMerged(0) && plot.settings.getMerged(3))) {
if ((plot.getMerged(0) && plot.getMerged(3))) {
return MainUtil.getBottomPlot(plot).id;
}
return null;
@ -143,7 +143,7 @@ public abstract class SquarePlotManager extends GridPlotManager {
if (plot == null) {
return null;
}
if (plot.settings.getMerged(0)) {
if (plot.getMerged(0)) {
return MainUtil.getBottomPlot(plot).id;
}
return null;
@ -156,7 +156,7 @@ public abstract class SquarePlotManager extends GridPlotManager {
if (plot == null) {
return null;
}
if (plot.settings.getMerged(3)) {
if (plot.getMerged(3)) {
return MainUtil.getBottomPlot(plot).id;
}
return null;