getSlot() and found()

This commit is contained in:
StormyBytes
2021-06-07 21:21:58 +07:00
parent b21a0ee7f1
commit 48e19964f2
6 changed files with 11 additions and 11 deletions

View File

@@ -95,7 +95,7 @@ public class Painter extends Module {
// Get slot
FindItemResult findItemResult = InvUtils.findInHotbar(itemStack -> block.get() == Block.getBlockFromItem(itemStack.getItem()));
if (findItemResult.slot == -1) {
if (!findItemResult.found()) {
error("No selected blocks in hotbar");
toggle();
return;