mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-20 12:47:37 +07:00
Load content icons on a headless server (#8650)
* Update build.gradle * Update Fonts.java * Update ServerLauncher.java * Update ServerLauncher.java * s stands for shiza * Update build.gradle
This commit is contained in:
@ -39,11 +39,13 @@ task dist(type: Jar, dependsOn: configurations.runtimeClasspath){
|
||||
exclude("music/**")
|
||||
exclude("sounds/**")
|
||||
exclude("fonts/**")
|
||||
exclude("icons/**")
|
||||
exclude("bundles/**")
|
||||
exclude("cubemaps/**")
|
||||
exclude("cursors/**")
|
||||
exclude("shaders/**")
|
||||
exclude("icons/icon.icns")
|
||||
exclude("icons/icon.ico")
|
||||
exclude("icons/icon_64.png")
|
||||
|
||||
manifest{
|
||||
attributes 'Main-Class': project.mainClassName
|
||||
|
@ -11,6 +11,7 @@ import mindustry.mod.*;
|
||||
import mindustry.mod.Mods.*;
|
||||
import mindustry.net.Net;
|
||||
import mindustry.net.*;
|
||||
import mindustry.ui.*;
|
||||
|
||||
import java.time.*;
|
||||
|
||||
@ -45,11 +46,15 @@ public class ServerLauncher implements ApplicationListener{
|
||||
|
||||
Vars.loadSettings();
|
||||
Vars.init();
|
||||
|
||||
UI.loadColors();
|
||||
Fonts.loadContentIconsHeadless();
|
||||
|
||||
content.createBaseContent();
|
||||
mods.loadScripts();
|
||||
content.createModContent();
|
||||
content.init();
|
||||
|
||||
if(mods.hasContentErrors()){
|
||||
err("Error occurred loading mod content:");
|
||||
for(LoadedMod mod : mods.list()){
|
||||
|
Reference in New Issue
Block a user