update meta-update plugin, fix mod loading, update night-config
All checks were successful
Publish to snapshot maven / build (push) Successful in 40s

This commit is contained in:
moehreag 2024-06-17 18:54:06 +02:00
parent 0165161a9c
commit 66bd53ca71
3 changed files with 4 additions and 4 deletions

View file

@ -3,11 +3,11 @@ plugins {
`java-library` `java-library`
id("io.freefair.lombok") version "8.+" id("io.freefair.lombok") version "8.+"
`maven-publish` `maven-publish`
id("dev.frogmc.meta-update") version "0.0.1-alpha.5" id("dev.frogmc.meta-update") version "0.0.1-alpha.6"
} }
group = "dev.frogmc" group = "dev.frogmc"
version = "0.0.1-alpha.7" version = "0.0.1-alpha.8"
repositories { repositories {
maven { maven {

View file

@ -1,7 +1,7 @@
[versions] [versions]
thyroxine = "0.0.1-alpha.3" thyroxine = "0.0.1-alpha.3"
nightconfig = "3.7.2" nightconfig = "3.7.3"
mixin = "0.14.0+mixin.0.8.6" mixin = "0.14.0+mixin.0.8.6"
annotations = "24.1.0" annotations = "24.1.0"
mixinextras = "0.3.6" mixinextras = "0.3.6"

View file

@ -24,7 +24,7 @@ public class PluginLoader {
List<ModProvider> providers = new ArrayList<>(ServiceLoader.load(ModProvider.class).stream().map(ServiceLoader.Provider::get).toList()); // we need mutability & random access List<ModProvider> providers = new ArrayList<>(ServiceLoader.load(ModProvider.class).stream().map(ServiceLoader.Provider::get).toList()); // we need mutability & random access
Map<String, Collection<ModProperties>> properties = new HashMap<>(); Map<String, Collection<ModProperties>> properties = new HashMap<>();
int[] size = new int[providers.size()]; // use a separate size variable to not have to iterate over the list over and over again int[] size = new int[]{providers.size()}; // use a separate size variable to not have to iterate over the list over and over again
for (int i = 0; i < size[0]; i++) { for (int i = 0; i < size[0]; i++) {
ModProvider plugin = providers.get(i); // use random access to work around concurrent access (through modifications during iteration) ModProvider plugin = providers.get(i); // use random access to work around concurrent access (through modifications during iteration)
LOGGER.debug("Found mod provider: {}", plugin.getClass().getName()); LOGGER.debug("Found mod provider: {}", plugin.getClass().getName());