Skip to content

Commit bb5ab49

Browse files
Tried fixing ArrayOutOfBounds Exception when parsing a file.
The error occured due to me geting index 1 in an array of length 1. Human error caused by a 2am coder who wass just using lua.
1 parent 34972a4 commit bb5ab49

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
1313
apply plugin: 'eclipse'
1414
apply plugin: 'maven-publish'
1515

16-
version = '1.0.0'
16+
version = '1.0.1'
1717
group = 'com.codingpupper3033.btekml' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
1818
archivesBaseName = 'btekml'
1919

src/main/java/com/codingpupper3033/btekml/BTEKMLMod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class BTEKMLMod
1313
{
1414
public static final String MODID = "btekml";
1515
public static final String NAME = "BTE KML Importer";
16-
public static final String VERSION = "1.0.0";
16+
public static final String VERSION = "1.0.1";
1717

1818
private static Logger logger;
1919

src/main/java/com/codingpupper3033/btekml/kmlfileprocessor/KMLParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.codingpupper3033.btekml.kmlfileprocessor;
22

3-
import com.codingpupper3033.btekml.maphelpers.altitude.AltitudeMode;
43
import com.codingpupper3033.btekml.maphelpers.Coordinate;
4+
import com.codingpupper3033.btekml.maphelpers.altitude.AltitudeMode;
55
import org.w3c.dom.Document;
66
import org.w3c.dom.Element;
77
import org.w3c.dom.Node;
@@ -46,7 +46,7 @@ static public Document[] parse(File f) throws ParserConfigurationException, IOEx
4646
for (int i = 0; i < KML_FILE_NAMES.length; i++) {
4747
if (f.getName().endsWith("." + KML_FILE_NAMES[i])) {
4848
Document[] out = new Document[1];
49-
out[1] = parseKML(f);
49+
out[0] = parseKML(f);
5050
return out;
5151
}
5252
}

src/main/resources/mcmod.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"modid": "btekml",
44
"name": "BTE KML Importer",
55
"description": "Imports KML and KMZ files into the Build the Earth server. KML & KMZ are standard ways to export points and lines on a map.",
6-
"version": "1.0.0",
6+
"version": "1.0.1",
77
"mcversion": "1.12.2",
88
"url": "",
99
"updateUrl": "",

0 commit comments

Comments
 (0)