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.
This commit is contained in:
SenseiKiwi 2014-03-07 17:41:12 -04:00
parent 60c2cc4710
commit baa5555547

View file

@ -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);
}
}