Skip to content

Commit

Permalink
Actually fix .copyitem test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Alexander01998 committed Nov 27, 2024
1 parent 970169f commit 179984d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/net/wurstclient/test/CopyItemCmdTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 179984d

Please sign in to comment.