Map from id in system_info('server_mods')

This commit is contained in:
altrisi authored and gnembon committed 2022-08-19 07:32:46 +02:00
1 parent 7bdd1a534b
commit c6941b840f
1 file changed
+1 -1
@@ -131,7 +131,7 @@ public class SystemInfo {
put("server_mods", c -> {
Map<Value, Value> ret = new HashMap<>();
for (ModContainer mod : FabricLoader.getInstance().getAllMods())
ret.put(new StringValue(mod.getMetadata().getName()), new StringValue(mod.getMetadata().getVersion().getFriendlyString()));
ret.put(new StringValue(mod.getMetadata().getId()), new StringValue(mod.getMetadata().getVersion().getFriendlyString()));
return MapValue.wrap(ret);
});
put("server_last_tick_times", c -> {