From 9a65bdb72d1ec0ddec26146c4829dbc531541e1a Mon Sep 17 00:00:00 2001 From: wizjany Date: Fri, 31 Jul 2015 12:46:51 -0400 Subject: [PATCH] Fix cycler tool trying to set negative data values. Fixes WORLDEDIT-3325. --- .../java/com/sk89q/worldedit/command/tool/BlockDataCyler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/BlockDataCyler.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/BlockDataCyler.java index 60045d3da..ec2a05559 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/BlockDataCyler.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/BlockDataCyler.java @@ -60,7 +60,7 @@ public class BlockDataCyler implements DoubleActionBlockTool { BaseBlock block = new BaseBlock(type, BlockData.cycle(type, data, increment)); EditSession editSession = session.createEditSession(player); - if (data < 0) { + if (block.getData() < 0) { player.printError("That block's data cannot be cycled!"); } else { try {