mirror of
https://github.com/Brettflan/WorldBorder.git
synced 2024-11-26 03:55:57 +01:00
When checking for +/- on radiusZ parameter, it was incorrectly checking the radiusX parameter instead; fixed
This commit is contained in:
parent
2c02a33275
commit
d38bfc3f30
@ -59,13 +59,13 @@ public class CmdRadius extends WBCmd
|
||||
|
||||
if (params.size() == 2)
|
||||
{
|
||||
if (params.get(0).startsWith("+"))
|
||||
if (params.get(1).startsWith("+"))
|
||||
{
|
||||
// Add to the current radius
|
||||
radiusZ = border.getRadiusZ();
|
||||
radiusZ += Integer.parseInt(params.get(1).substring(1));
|
||||
}
|
||||
else if(params.get(0).startsWith("-"))
|
||||
else if(params.get(1).startsWith("-"))
|
||||
{
|
||||
// Subtract from the current radius
|
||||
radiusZ = border.getRadiusZ();
|
||||
|
Loading…
Reference in New Issue
Block a user