Skip to content

Commit

Permalink
Hack to work around Forge/Gradle omitting methods during compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackJar72 committed Feb 6, 2019
1 parent dab3b3f commit 282e4d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion java/jaredbgreat/dldungeons/Info.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public final class Info {
public static final String OLD_ID = "DLDungeonsJBG";
public static final String ID = "dldungeonsjbg";
public static final String NAME = "Doomlike Dungeons";
public static final String VERSION = "1.12.0";
public static final String VERSION = "1.12.3";
public static final String MINECRAFT = "1.12.2";
public static final String CHANNEL = "JBGDungeons";

Expand Down
2 changes: 1 addition & 1 deletion java/jaredbgreat/dldungeons/nbt/NBTHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static ITag getTagFromLabel(String label) {
public static ITag parseNBTLine(String line) {
ITag out;
Tokenizer tokens = new Tokenizer(line, " \t");
return Tags.makeITag(tokens);
return Tags.makeITag(line, tokens);
}


Expand Down
4 changes: 2 additions & 2 deletions java/jaredbgreat/dldungeons/nbt/tags/Tags.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public final class Tags {

private Tags(){/*Do not instantiate this*/}

public static ITag makeITag(Tokenizer tokens) {
public static ITag makeITag(String line, Tokenizer tokens) {
ITag out;
NBTType type = NBTType.valueOf(tokens.getToken(1).toUpperCase());
switch(type) {
Expand Down Expand Up @@ -67,7 +67,7 @@ public static ITag makeITag(Tokenizer tokens) {
out = new Enchantment(tokens.getToken(0), tokens.getToken(2), tokens.getToken(3));
break;
case JSON:
String[] s = tokens.getString().split("\\s+", 3);
String[] s = line.split("\\s+", 3);
if(s.length == 3)
out = new NBTFromJsonWrapper(tokens.getToken(0), s[2]);
else out = null;
Expand Down

0 comments on commit 282e4d2

Please sign in to comment.