From 3cacff6550a04ff5e9b81b4e5fd253e55ef4b0f1 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 15 Jun 2022 07:29:32 -0400 Subject: [PATCH] Fixed #7020 --- 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 908af3167f..ba5c81a6ef 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -890,7 +890,7 @@ public class UnitType extends UnlockableContent{ } for(Weapon weapon : weapons){ - if(!weapon.name.isEmpty()){ + if(!weapon.name.isEmpty() && (minfo.mod == null || weapon.name.startsWith(minfo.mod.name))){ //TODO makeNew isn't really necessary here is it makeOutline(PageType.main, packer, weapon.region, separateOutline, outlineColor, outlineRadius); }