From e4c0c6b6e94b60d81b13e92e275870f0716b657b Mon Sep 17 00:00:00 2001 From: p2r3 Date: Wed, 10 Sep 2025 20:11:59 +0300 Subject: [PATCH] fix armor not equipping from right click --- src/procedures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/procedures.c b/src/procedures.c index 3939ae2..bab819c 100644 --- a/src/procedures.c +++ b/src/procedures.c @@ -1151,7 +1151,7 @@ void handlePlayerUseItem (PlayerData *player, short x, short y, short z, uint8_t } else if (getItemDefensePoints(*item) != 0) { // For some reason, this action is sent twice when looking at a block // Ignore the variant that has coordinates - if (face == 255) return; + if (face != 255) return; // Swap to held piece of armor uint8_t slot = getArmorItemSlot(*item); uint16_t prev_item = player->inventory_items[slot];