Fix cycler tool trying to set negative data values.

Fixes WORLDEDIT-3325.
This commit is contained in:
wizjany 2015-07-31 12:46:51 -04:00
parent 1dd6faf786
commit 9a65bdb72d

View File

@ -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 {