#1248: Load GameEvent and MusicInstrument from registry

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2023-09-02 12:55:23 +10:00
parent a16df1b04c
commit c8a9b8d25c
8 changed files with 186 additions and 14 deletions

View File

@@ -321,6 +321,8 @@ public final class CraftServer implements Server {
Bukkit.setServer(this);
CraftRegistry.setMinecraftRegistry(console.registryAccess());
// Register all the Enchantments and PotionTypes now so we can stop new registration immediately after
Enchantments.SHARPNESS.getClass();
org.bukkit.enchantments.Enchantment.stopAcceptingRegistrations();