fix more bugs

This commit is contained in:
2025-11-27 07:44:07 +01:00
parent e510f06d7b
commit 8bfca217aa
5 changed files with 17 additions and 5 deletions
@@ -49,9 +49,10 @@ public class ServerboundUnlockNodePacket {
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())
new ClientboundNodeUnlockedPacket(node.getId(), data.getSkillPoints())
);
} else {
SkillEngine.LOGGER.info("Cannot unlock node {} for {} (canUnlock=false)",