diff --git a/common/buildcraft/BuildCraftCore.java b/common/buildcraft/BuildCraftCore.java index 6c13a52a..9a52e961 100644 --- a/common/buildcraft/BuildCraftCore.java +++ b/common/buildcraft/BuildCraftCore.java @@ -295,8 +295,7 @@ public class BuildCraftCore { @ServerStarting public void serverStarting(FMLServerStartingEvent event) { - CommandHandler commandManager = (CommandHandler) event.getServer().getCommandManager(); - commandManager.registerCommand(new CommandBuildCraft()); + event.registerServerCommand(new CommandBuildCraft()); } public void loadRecipes() {