downgrade folialib to avoid stackoverflow
This commit is contained in:
parent
5d4e9e4021
commit
0d24169283
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user