mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-29 04:04:43 +02:00
Lazy initialization
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user