From 70e1e00e23e34dccc95181bc67bbb229672a298a Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 24 Aug 2017 20:56:38 +1000 Subject: [PATCH] Use double instead of int for cyl radius --- .../com/sk89q/worldedit/command/GenerationCommands.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java b/core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java index 5a332b96..ad7dffc6 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java @@ -190,7 +190,7 @@ public class GenerationCommands extends MethodCommands { fp.checkConfirmationRadius(getArguments(context), (int) max); height = Math.min(256, height); Vector pos = session.getPlacementPosition(player); - int affected = editSession.makeHollowCylinder(pos, pattern, radius.getBlockX(), radius.getBlockZ(), height, thickness - 1); + int affected = editSession.makeHollowCylinder(pos, pattern, radius.getX(), radius.getZ(), height, thickness - 1); BBC.VISITOR_BLOCK.send(fp, affected); } @@ -215,7 +215,7 @@ public class GenerationCommands extends MethodCommands { fp.checkConfirmationRadius(getArguments(context), (int) max); height = Math.min(256, height); Vector pos = session.getPlacementPosition(player); - int affected = editSession.makeCylinder(pos, pattern, radius.getBlockX(), radius.getBlockZ(), height, !hollow); + int affected = editSession.makeCylinder(pos, pattern, radius.getX(), radius.getZ(), height, !hollow); BBC.VISITOR_BLOCK.send(fp, affected); } @@ -259,10 +259,10 @@ public class GenerationCommands extends MethodCommands { Vector pos = session.getPlacementPosition(player); if (raised) { - pos = pos.add(0, radius.getBlockY(), 0); + pos = pos.add(0, radius.getY(), 0); } - int affected = editSession.makeSphere(pos, pattern, radius.getBlockX(), radius.getBlockY(), radius.getBlockZ(), !hollow); + int affected = editSession.makeSphere(pos, pattern, radius.getX(), radius.getY(), radius.getZ(), !hollow); player.findFreePosition(); BBC.VISITOR_BLOCK.send(fp, affected); }