mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix cycler tool trying to set negative data values.
Fixes WORLDEDIT-3325.
This commit is contained in:
parent
1dd6faf786
commit
9a65bdb72d
@ -60,7 +60,7 @@ public class BlockDataCyler implements DoubleActionBlockTool {
|
|||||||
BaseBlock block = new BaseBlock(type, BlockData.cycle(type, data, increment));
|
BaseBlock block = new BaseBlock(type, BlockData.cycle(type, data, increment));
|
||||||
EditSession editSession = session.createEditSession(player);
|
EditSession editSession = session.createEditSession(player);
|
||||||
|
|
||||||
if (data < 0) {
|
if (block.getData() < 0) {
|
||||||
player.printError("That block's data cannot be cycled!");
|
player.printError("That block's data cannot be cycled!");
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user