This commit is contained in:
Deleted user 2020-05-25 21:03:31 -04:00 committed by GitHub
commit 73372eb17d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -70,6 +70,16 @@ public class Config
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));