From 8fae99e780e32717331f66ff595c8308938bf869 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 7 May 2022 10:22:33 -0400 Subject: [PATCH] Fixed JSON part support --- core/src/mindustry/type/UnitType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index a968d553ae..ea8b829625 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -1093,7 +1093,7 @@ public class UnitType extends UnlockableContent{ //TODO how/where do I draw under? if(parts.size > 0){ for(int i = 0; i < parts.size; i++){ - var part = parts.items[i]; + var part = parts.get(i); WeaponMount first = unit.mounts.length > part.weaponIndex ? unit.mounts[part.weaponIndex] : null; if(first != null){