Bjarne Koll
8f62e0fb31
Correctly order getArmorContents
...
Mojangs EQUIPMENT_SLOT_MAPPING uses an Int2ObjectArrayMap and hence
technically does provide iteration stability, however it is filled from
a MapN, which destroys the well order of the entries.
To iterate from smallest to largest inventory index correctly, this
commit introduces a sorted array based on the EQUIPMENT_SLOT_MAPPING.
2025-04-13 11:41:59 +02:00
..
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-13 11:41:59 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2024-12-14 13:05:27 +01:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2025-04-12 17:27:00 +02:00
2024-12-14 12:36:08 +01:00
2025-04-12 17:27:00 +02:00