From 179984d6a69e3adeb6ba3e4e4781d3ef88ca6e4f Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 27 Nov 2024 10:20:48 +0100 Subject: [PATCH] Actually fix .copyitem test I was testing with AutoArmor enabled, which removed the helmet from the hand slot for me. Didn't realize that right-clicking a helmet in creative mode is supposed to duplicate it. This new command simply puts the helmet directly on the player's head. --- src/main/java/net/wurstclient/test/CopyItemCmdTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/wurstclient/test/CopyItemCmdTest.java b/src/main/java/net/wurstclient/test/CopyItemCmdTest.java index cfe2bbe9cb..d80ca8ae75 100644 --- a/src/main/java/net/wurstclient/test/CopyItemCmdTest.java +++ b/src/main/java/net/wurstclient/test/CopyItemCmdTest.java @@ -22,8 +22,7 @@ public static void testCopyItemCmd() setPerspective(Perspective.THIRD_PERSON_FRONT); // Put on a golden helmet - runChatCommand("give @s golden_helmet"); - rightClickInGame(); + runChatCommand("item replace entity @s armor.head with golden_helmet"); takeScreenshot("copyitem_command_setup"); assertOneItemInSlot(39, Items.GOLDEN_HELMET); assertNoItemInSlot(0);