From 41423d43bbef947b80438cc3dd93132b19c6c4d0 Mon Sep 17 00:00:00 2001 From: Skat <55407440+skykatik@users.noreply.github.com> Date: Tue, 27 Apr 2021 18:24:30 +0400 Subject: [PATCH] Dont try load mod icons on server (#5160) --- core/src/mindustry/mod/Mods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/mod/Mods.java b/core/src/mindustry/mod/Mods.java index 85f195ad54..a79634a43e 100644 --- a/core/src/mindustry/mod/Mods.java +++ b/core/src/mindustry/mod/Mods.java @@ -138,7 +138,7 @@ public class Mods implements Loadable{ private void loadIcon(LoadedMod mod){ //try to load icon for each mod that can have one - if(mod.root.child("icon.png").exists()){ + if(mod.root.child("icon.png").exists() && !headless){ try{ mod.iconTexture = new Texture(mod.root.child("icon.png")); mod.iconTexture.setFilter(TextureFilter.linear);