Skip to content

Commit

Permalink
Fix massive oversight from stream op removal which broke "learn all" …
Browse files Browse the repository at this point in the history
…logic
  • Loading branch information
62832 committed Dec 27, 2024
1 parent 50ebb98 commit 042836a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public void handle(Supplier<NetworkEvent.Context> context) {
if (knowledge.isTrackingPlayer(sender)) {
for (var key : storage.getCachedInventory().keySet()) {
if (!(key instanceof AEItemKey item)) {
return;
continue;
}

if (!knowledge.getProviderFor(sender.getUUID()).get().hasKnowledge(item.toStack())) {
return;
if (knowledge.getProviderFor(sender.getUUID()).get().hasKnowledge(item.toStack())) {
continue;
}

var learned = knowledge
Expand All @@ -51,6 +51,5 @@ public void handle(Supplier<NetworkEvent.Context> context) {
}
}
});
context.get().setPacketHandled(true);
}
}

0 comments on commit 042836a

Please sign in to comment.