Fixed Bug in CommandEndDungeonCreation

Fixed a simple bug that caused dd-export to ask the user to use
'override' even though it was already being used.
This commit is contained in:
SenseiKiwi
2013-07-15 12:56:32 -04:00
parent 7583df430c
commit 888e6fe590

View File

@@ -78,7 +78,7 @@ public class CommandEndDungeonCreation extends DDCommandBase
//The user must have used the 3-argument version of this command //The user must have used the 3-argument version of this command
//Check if the current dimension is a pocket for building custom dungeons or if the override argument was used. //Check if the current dimension is a pocket for building custom dungeons or if the override argument was used.
if (!dungeonHelper.isCustomDungeon(sender.worldObj.provider.dimensionId) || if (!dungeonHelper.isCustomDungeon(sender.worldObj.provider.dimensionId) &&
!command[command.length - 1].equalsIgnoreCase("override")) !command[command.length - 1].equalsIgnoreCase("override"))
{ {
//This dimension may not be exported without overriding! //This dimension may not be exported without overriding!