From baa55555476a3c1692f91c3bbc86853fea47fca8 Mon Sep 17 00:00:00 2001 From: SenseiKiwi Date: Fri, 7 Mar 2014 17:41:12 -0400 Subject: [PATCH] Fixing Build Issue with DDCommandBase I copied two functions from CommandBase into DDCommandBase because their absence is breaking our builds on Technic and Dryware Jenkins. I have no idea why that's happening. My copy of MC's source code has those functions in CommandBase and my code compiles without a problem. --- .../mod_pocketDim/commands/DDCommandBase.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/StevenDimDoors/mod_pocketDim/commands/DDCommandBase.java b/src/main/java/StevenDimDoors/mod_pocketDim/commands/DDCommandBase.java index ea8061f..b62cc86 100644 --- a/src/main/java/StevenDimDoors/mod_pocketDim/commands/DDCommandBase.java +++ b/src/main/java/StevenDimDoors/mod_pocketDim/commands/DDCommandBase.java @@ -1,6 +1,7 @@ package StevenDimDoors.mod_pocketDim.commands; import net.minecraft.command.CommandBase; +import net.minecraft.command.ICommand; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.ChatMessageComponent; @@ -89,4 +90,19 @@ public abstract class DDCommandBase extends CommandBase cmp.addText(message); player.sendChatToPlayer(cmp); } + + /* + * The following two compareTo() methods are copied from CommandBase because it seems + * that Dryware and Technic Jenkins don't have those functions defined. How in the world? + * I have no idea. But it's breaking our builds. -_- ~SenseiKiwi + */ + public int compareTo(ICommand par1ICommand) + { + return this.getCommandName().compareTo(par1ICommand.getCommandName()); + } + + public int compareTo(Object par1Obj) + { + return this.compareTo((ICommand)par1Obj); + } }