Fix teleport for single plot worlds

This commit is contained in:
Jesse Boyd 2017-07-08 23:22:05 +10:00
parent 73318f23a1
commit 3633576e03
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -3,6 +3,7 @@ package com.intellectualcrafters.plot.object.worlds;
import com.intellectualcrafters.plot.config.C; import com.intellectualcrafters.plot.config.C;
import com.intellectualcrafters.plot.flag.Flag; import com.intellectualcrafters.plot.flag.Flag;
import com.intellectualcrafters.plot.object.BlockLoc; import com.intellectualcrafters.plot.object.BlockLoc;
import com.intellectualcrafters.plot.object.Location;
import com.intellectualcrafters.plot.object.Plot; import com.intellectualcrafters.plot.object.Plot;
import com.intellectualcrafters.plot.object.PlotArea; import com.intellectualcrafters.plot.object.PlotArea;
import com.intellectualcrafters.plot.object.PlotId; import com.intellectualcrafters.plot.object.PlotId;
@ -48,6 +49,11 @@ public class SinglePlot extends Plot {
} }
} }
@Override
public Location getSide() {
return getCenter();
}
@Override @Override
protected boolean isLoaded() { protected boolean isLoaded() {
getArea().loadWorld(getId()); getArea().loadWorld(getId());