From d37a326e9ac6c89c976813bd37687b720c3a7b47 Mon Sep 17 00:00:00 2001 From: muhammadeko Date: Sat, 30 Apr 2022 06:49:49 +0700 Subject: [PATCH] Give Artifact: Clear random props first before adding all picked props --- .../emu/grasscutter/command/commands/GiveArtifactCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/emu/grasscutter/command/commands/GiveArtifactCommand.java b/src/main/java/emu/grasscutter/command/commands/GiveArtifactCommand.java index e33a287e3..299a14f40 100644 --- a/src/main/java/emu/grasscutter/command/commands/GiveArtifactCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/GiveArtifactCommand.java @@ -79,6 +79,7 @@ public final class GiveArtifactCommand implements CommandHandler { GameItem item = new GameItem(itemData); item.setLevel(level); item.setMainPropId(mainPropId); + item.getAppendPropIdList().clear();//Clear default random props first item.getAppendPropIdList().addAll(appendPropIdList); targetPlayer.getInventory().addItem(item, ActionReason.SubfieldDrop);