#997: Change wolf variant from enum to interface

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
Bukkit/Spigot
2024-04-24 04:21:58 +10:00
parent 4ba949cee7
commit 358a4da17e
2 changed files with 18 additions and 20 deletions

View File

@@ -271,7 +271,7 @@ public interface Registry<T extends Keyed> extends Iterable<T> {
*
* @see Wolf.Variant
*/
Registry<Wolf.Variant> WOLF_VARIANT = new SimpleRegistry<>(Wolf.Variant.class);
Registry<Wolf.Variant> WOLF_VARIANT = Objects.requireNonNull(Bukkit.getRegistry(Wolf.Variant.class), "No registry present for Wolf Variant. This is a bug.");
/**
* Map cursor types.
*