Fixing some stuff after testing

This commit is contained in:
boy0001 2015-07-28 03:28:39 +10:00
parent 5b2e83587b
commit 955fa674d0
16 changed files with 79 additions and 86 deletions

View file

@ -158,6 +158,9 @@ public class ClusterManager {
public static PlotCluster getCluster(final Location loc) {
final String world = loc.getWorld();
PlotManager manager = PS.get().getPlotManager(world);
if (manager == null) {
return null;
}
PlotId id = manager.getPlotIdAbs(PS.get().getPlotWorld(world), loc.getX(), loc.getY(), loc.getZ());
if (id != null) {
return getCluster(world, id);