diff --git a/src/main/java/xiamomc/morph/network/server/ServerSetEquipCommand.java b/src/main/java/xiamomc/morph/network/server/ServerSetEquipCommand.java index f0980c5b..297a03c0 100644 --- a/src/main/java/xiamomc/morph/network/server/ServerSetEquipCommand.java +++ b/src/main/java/xiamomc/morph/network/server/ServerSetEquipCommand.java @@ -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)