Fixed Bugs

Fixed bugs that would cause Minecraft to crash on startup. At least I
can get to the main menu now.
This commit is contained in:
SenseiKiwi
2013-09-03 17:47:02 -04:00
parent 4cd7d3c0ae
commit 77bc0e833f
2 changed files with 4 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ public class DungeonData
int indexB = schematicPath.lastIndexOf('/');
indexA = Math.max(indexA, indexB) + 1;
return schematicPath.substring(indexA, schematicPath.length() - DungeonHelper.SCHEMATIC_FILE_EXTENSION.length() - indexA);
return schematicPath.substring(indexA, schematicPath.length() - DungeonHelper.SCHEMATIC_FILE_EXTENSION.length());
}
public int weight()