diff --git a/src/main/java/com/wimbli/WorldBorder/Config.java b/src/main/java/com/wimbli/WorldBorder/Config.java index 0ea4f097..672f6e93 100644 --- a/src/main/java/com/wimbli/WorldBorder/Config.java +++ b/src/main/java/com/wimbli/WorldBorder/Config.java @@ -68,6 +68,16 @@ public static long Now() public static void setBorder(String world, BorderData border, boolean logIt) { + if(border.getShape()==null || !border.getShape()) + { + if(border.getRadiusX()==border.getRadiusZ()) + { + org.bukkit.WorldBorder wb = WorldBorder.plugin.getServer().getWorld(world).getWorldBorder(); + wb.setCenter(border.getX(), border.getZ()); + wb.setSize(border.getRadiusX()); + wb.setDamageAmount(0); + } + } borders.put(world, border); if (logIt) log("Border set. " + BorderDescription(world));