After clearing, get new baubles inventory instead of working with old one (#15)

This commit is contained in:
DarkShadow44 authored and GitHub committed 2025-10-01 21:29:11 +02:00
1 parent ec5a92a4ad
commit 4d4fc3a2ae
1 file changed
+1
@@ -64,6 +64,7 @@ public class PacketSyncBauble implements IMessage, IMessageHandler<PacketSyncBau
if (message.initial) {
if (message.slot == 0) {
PlayerHandler.clearClientPlayerBaubles();
baubles = PlayerHandler.getPlayerBaubles(player);
}
baubles.stackList[message.slot] = message.bauble;
if (message.bauble != null && message.bauble.getItem() instanceof IBauble itemBauble) {