Dont try load mod icons on server (#5160)

This commit is contained in:
Skat
2021-04-27 18:24:30 +04:00
committed by GitHub
parent 7dc3dfd29e
commit 41423d43bb

View File

@@ -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);