Implement mutual exclusives
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user