Fixed a bug in modded armor
Fixed some compiler errors