Implement mutual exclusives

This commit is contained in:
2025-12-04 20:46:39 +01:00
parent 9ff5d9f828
commit d0755c893f
5 changed files with 37 additions and 5 deletions
@@ -48,8 +48,6 @@ public class ServerboundUnlockNodePacket {
if (SkillLogic.canUnlock(data, player, node)) {
data.unlockNode(node);
SkillEngine.LOGGER.info("Node {} unlocked for {}", msg.nodeId, player.getGameProfile().getName());
// Send client an immediate update about the unlocked node and the new remaining points
PacketHandler.CHANNEL.send(
PacketDistributor.PLAYER.with(() -> player),
new ClientboundNodeUnlockedPacket(node.getId(), data.getSkillPoints())