diff --git a/src/main/java/gripe/_90/appliede/me/misc/LearnAllItemsPacket.java b/src/main/java/gripe/_90/appliede/me/misc/LearnAllItemsPacket.java index 45e0854..bdba10b 100644 --- a/src/main/java/gripe/_90/appliede/me/misc/LearnAllItemsPacket.java +++ b/src/main/java/gripe/_90/appliede/me/misc/LearnAllItemsPacket.java @@ -28,11 +28,11 @@ public void handle(Supplier 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 @@ -51,6 +51,5 @@ public void handle(Supplier context) { } } }); - context.get().setPacketHandled(true); } }