Fix WarpListener

This commit is contained in:
2025-08-02 08:33:14 +02:00
parent 5550aa4930
commit 0a4dccd95a
@@ -91,10 +91,10 @@ public class WarpListener implements Listener {
locations.put(warp.getName(), warp.getLocation()); locations.put(warp.getName(), warp.getLocation());
}); });
Region region = Region.getRegion(p.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)); 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)); locations.put("TestBlock", region.getTestblockArea().getCopyPoint().toLocation(p).add(0.5, 0, 0.5));
} }
} }