Fix registry

This commit is contained in:
Jesse Boyd 2019-04-06 02:52:27 +11:00
parent 16b01b9de2
commit 386c8836cd
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -53,7 +53,7 @@ public final class NamespacedRegistry<V extends RegistryItem> extends Registry<V
values.add(value);
super.register(key, value);
if (key.startsWith(defaultNamespace)) {
super.register(key.substring(index), value);
super.register(key.substring(index + 1), value);
}
return value;
}