1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-11-11 03:31:19 +03:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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