3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-07-23 02:28:02 +02:00

Fix cycler tool trying to set negative data values.

Fixes WORLDEDIT-3325.
Dieser Commit ist enthalten in:
wizjany 2015-07-31 12:46:51 -04:00
Ursprung 1dd6faf786
Commit 9a65bdb72d

Datei anzeigen

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