Skip to content

Commit

Permalink
Fix ServerSetEquipCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Sep 17, 2024
1 parent e79c0f6 commit a3cf2dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public ServerSetEquipCommand(ItemStack item, EquipmentSlot slot)
}

@Override
public String buildCommand()
public String serializeArguments()
{
return super.buildCommand() + " " + getSlot() + " " + ItemUtils.itemToStr(getItemStack());
return getSlot().toString() + " " + ItemUtils.itemToStr(getItemStack());
}

private static ProtocolEquipmentSlot toProtocolEquipment(EquipmentSlot slot)
Expand Down

0 comments on commit a3cf2dd

Please sign in to comment.