Gaia Dimension

Gaia Dimension

1M Downloads

Wrong Armor dropped during Malachite Guard fight

Drullkus opened this issue ยท 1 comments

commented

The helmet slot was cleared, but a copy of the boots dropped on the ground instead

Image

Version 1.21-2.2.284

commented

Investigated further: When my boots slot cleared, a copy of the helmet dropped. When the leggings slot cleared, a copy of the chestplate dropped. Seemed that the slot vs drop were all backwards.

Looked in the boss code, my guess is a discrepancy between the index used for the armor slot, vs the slottype that's accessed from array:

ItemStack stack = armor.get(slot);
EquipmentSlot[] equipment = new EquipmentSlot[]{EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.LEGS, EquipmentSlot.FEET};
EquipmentSlot slotType = equipment[slot];