mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
feat: Support for 1.18.2 (#1641)
* feat: Preliminary work for 1.18.2 * Update SpigotNames to 1.18.2 (#1642) * 1.18.2 / Biome-Holders, regeneration (#1645) * 1.18.2 / Biome-Holders, regeneration * fix: reuse old structure sets * build: Update dev bundles * fix: Don't log regen world generation * fix: Run DataConverter with CBT * fix: Override `#toNativeBinary` * fix: Exception on regen Co-Authored-By: Pierre Maurice Schwang <mail@pschwang.eu> * refactor: Minor cleanup Co-authored-by: Aurora <21148213+aurorasmiles@users.noreply.github.com> Co-authored-by: Pierre Maurice Schwang <mail@pschwang.eu>
This commit is contained in:
@ -52,14 +52,14 @@ public class Registry<V extends Keyed> implements Iterable<V> {
|
||||
|
||||
@Nullable
|
||||
public V get(final String key) {
|
||||
checkState(key.equals(key.toLowerCase(Locale.ROOT)), "key must be lowercase");
|
||||
checkState(key.equals(key.toLowerCase(Locale.ROOT)), "key must be lowercase: %s", key);
|
||||
return this.map.get(key);
|
||||
}
|
||||
|
||||
public V register(final String key, final V value) {
|
||||
requireNonNull(key, "key");
|
||||
requireNonNull(value, "value");
|
||||
checkState(key.equals(key.toLowerCase(Locale.ROOT)), "key must be lowercase");
|
||||
checkState(key.equals(key.toLowerCase(Locale.ROOT)), "key must be lowercase: %s", key);
|
||||
checkState(!this.map.containsKey(key), "key '%s' already has an associated %s", key, this.name);
|
||||
this.map.put(key, value);
|
||||
return value;
|
||||
|
Reference in New Issue
Block a user