From 7f4b9b3927e1b8f02dd885bdb19e8ab526e0ca5a Mon Sep 17 00:00:00 2001 From: viper283 Date: Mon, 28 Jan 2013 22:39:16 +0000 Subject: [PATCH] Fix /buildcraft not working in singleplayer --- common/buildcraft/BuildCraftCore.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() {