Map from id in system_info('server_mods')
This commit is contained in:
1 parent
7bdd1a534b
commit
c6941b840f
1 file changed
+1
-1
@@ -131,7 +131,7 @@ public class SystemInfo {
|
|||||||
put("server_mods", c -> {
|
put("server_mods", c -> {
|
||||||
Map<Value, Value> ret = new HashMap<>();
|
Map<Value, Value> ret = new HashMap<>();
|
||||||
for (ModContainer mod : FabricLoader.getInstance().getAllMods())
|
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);
|
return MapValue.wrap(ret);
|
||||||
});
|
});
|
||||||
put("server_last_tick_times", c -> {
|
put("server_last_tick_times", c -> {
|
||||||
|
|||||||
Reference in new issue
Block a user