forked from SteamWar/SteamWar
Fix WarpListener
This commit is contained in:
@@ -91,10 +91,10 @@ public class WarpListener implements Listener {
|
||||
locations.put(warp.getName(), warp.getLocation());
|
||||
});
|
||||
Region region = Region.getRegion(p.getLocation());
|
||||
if (region.getBuildArea().getCopyPoint() != null) {
|
||||
if (!region.getBuildArea().isEmpty()) {
|
||||
locations.put("Copy", region.getBuildArea().getCopyPoint().toLocation(p).add(0.5, 0, 0.5));
|
||||
}
|
||||
if (region.getTestblockArea().getCopyPoint() != null) {
|
||||
if (!region.getTestblockArea().isEmpty()) {
|
||||
locations.put("TestBlock", region.getTestblockArea().getCopyPoint().toLocation(p).add(0.5, 0, 0.5));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user