mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 07:17:19 +07:00
Fixed JSON part support
This commit is contained in:
@ -1093,7 +1093,7 @@ public class UnitType extends UnlockableContent{
|
|||||||
//TODO how/where do I draw under?
|
//TODO how/where do I draw under?
|
||||||
if(parts.size > 0){
|
if(parts.size > 0){
|
||||||
for(int i = 0; i < parts.size; i++){
|
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;
|
WeaponMount first = unit.mounts.length > part.weaponIndex ? unit.mounts[part.weaponIndex] : null;
|
||||||
if(first != null){
|
if(first != null){
|
||||||
|
Reference in New Issue
Block a user