When checking for +/- on radiusZ parameter, it was incorrectly checking the radiusX parameter instead; fixed

This commit is contained in:
Brettflan 2014-06-17 05:53:02 -05:00
parent 2c02a33275
commit d38bfc3f30

View File

@ -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();