downgrade folialib to avoid stackoverflow

This commit is contained in:
xGinko 2024-07-04 14:59:27 +02:00
parent 5d4e9e4021
commit 0d24169283
2 changed files with 4 additions and 4 deletions

View File

@ -171,7 +171,7 @@
<dependency>
<groupId>com.tcoded</groupId>
<artifactId>FoliaLib</artifactId>
<version>0.3.4</version>
<version>0.3.1</version>
</dependency>
<!-- Cross-Version Support -->
<dependency>

View File

@ -44,7 +44,7 @@ public final class Keyring {
* from a {@link PersistentDataContainer}
*/
public static NamespacedKey getKey(@NotNull String pluginName, @NotNull String key) {
return new NamespacedKey(pluginName.toLowerCase(Locale.ROOT), key);
return new NamespacedKey(pluginName.toLowerCase(Locale.ROOT), key.toLowerCase(Locale.ROOT));
}
public enum VillagerOptimizer implements Keyed {
@ -57,7 +57,7 @@ public final class Keyring {
private final @NotNull NamespacedKey key;
VillagerOptimizer(@NotNull String key) {
this.key = new NamespacedKey(Space.VillagerOptimizer.namespace(), key);
this.key = Keyring.getKey(Space.VillagerOptimizer.namespace(), key);
}
@Override
@ -78,7 +78,7 @@ public final class Keyring {
private final @NotNull NamespacedKey key;
AntiVillagerLag(@NotNull String avlKey) {
this.key = new NamespacedKey(Space.AntiVillagerLag.namespace(), avlKey.toLowerCase());
this.key = Keyring.getKey(Space.AntiVillagerLag.namespace(), avlKey);
}
@Override