From a3cf2dd359d893a39218ad62f3d5c649d78322d3 Mon Sep 17 00:00:00 2001 From: MATRIX-feather Date: Tue, 17 Sep 2024 21:43:47 +0800 Subject: [PATCH] Fix ServerSetEquipCommand --- .../xiamomc/morph/network/server/ServerSetEquipCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)