mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Button for viewing content fields on wiki + More tests and fixes
This commit is contained in:
parent
c06c76d296
commit
3d4b432540
7 changed files with 96 additions and 2 deletions
|
|
@ -467,6 +467,13 @@ public class ServerControl implements ApplicationListener{
|
|||
info("Map directory: &fi@", customMapDirectory.file().getAbsoluteFile().toString());
|
||||
});
|
||||
|
||||
handler.register("reloadpatches", "Reload all patch files from disk.", arg -> {
|
||||
loadPatchFiles();
|
||||
if(contentPatches.isEmpty()){
|
||||
err("No valid content patch files found.");
|
||||
}
|
||||
});
|
||||
|
||||
handler.register("reloadmaps", "Reload all maps from disk.", arg -> {
|
||||
int beforeMaps = maps.all().size;
|
||||
maps.reload();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue