diff --git a/src/main/java/gripe/_90/appliede/menu/TransmutationTerminalMenu.java b/src/main/java/gripe/_90/appliede/menu/TransmutationTerminalMenu.java index fd1d953..1c3af8e 100644 --- a/src/main/java/gripe/_90/appliede/menu/TransmutationTerminalMenu.java +++ b/src/main/java/gripe/_90/appliede/menu/TransmutationTerminalMenu.java @@ -83,11 +83,14 @@ public void doAction(ServerPlayer player, InventoryAction action, int slot, long if (knowledge.isTrackingPlayer(player)) { var provider = knowledge.getProviderFor(player.getUUID()).get(); - provider.removeKnowledge(getCarried()); - provider.syncKnowledgeChange(player, ItemInfo.fromStack(getCarried()), false); - unlearnedLabelTicks = 300; - learnedLabelTicks = 0; - broadcastChanges(); + + if (provider.hasKnowledge(getCarried())) { + provider.removeKnowledge(getCarried()); + provider.syncKnowledgeChange(player, ItemInfo.fromStack(getCarried()), false); + unlearnedLabelTicks = 300; + learnedLabelTicks = 0; + broadcastChanges(); + } } } }