diff --git a/core/src/mindustry/mod/Mods.java b/core/src/mindustry/mod/Mods.java index 1eed765d1925..391636571ece 100644 --- a/core/src/mindustry/mod/Mods.java +++ b/core/src/mindustry/mod/Mods.java @@ -218,7 +218,10 @@ private void packSprites(Seq sprites, LoadedMod mod, boolean prefix, Seq { - String fullName = (prefix ? mod.name + "-" : "") + baseName; + //don't prefix with mod name if it's already prefixed by a category, e.g. `block-modname-content-full`. + int hyphen = baseName.indexOf('-'); + String fullName = ((prefix && !(hyphen != -1 && baseName.substring(hyphen + 1).startsWith(mod.name + "-"))) ? mod.name + "-" : "") + baseName; + packer.add(getPage(file), fullName, new PixmapRegion(pix)); if(textureScale != 1.0f){ textureResize.put(fullName, textureScale);