Skip to content

Commit 7686636

Browse files
authored
Fix null check in BookBot (#5835)
1 parent c87c81a commit 7686636

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/meteordevelopment/meteorclient/systems/modules/misc

1 file changed

+1
-1
lines changed

src/main/java/meteordevelopment/meteorclient/systems/modules/misc/BookBot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void onActivate() {
178178
private void onTick(TickEvent.Post event) {
179179
Predicate<ItemStack> bookPredicate = i -> {
180180
WritableBookContentComponent component = i.get(DataComponentTypes.WRITABLE_BOOK_CONTENT);
181-
return i.getItem() == Items.WRITABLE_BOOK && (component != null || component.pages().isEmpty());
181+
return i.getItem() == Items.WRITABLE_BOOK && (component == null || component.pages().isEmpty());
182182
};
183183

184184
FindItemResult writableBook = InvUtils.find(bookPredicate);

0 commit comments

Comments
 (0)