Skip to content

Commit

Permalink
Remove string parsing from ObjectMap
Browse files Browse the repository at this point in the history
Annoying to have to type "Raw" every time, wasn't it?
  • Loading branch information
ME1312 committed Oct 24, 2021
1 parent 560255c commit 89bbe82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GalaxiAPI/src/net/ME1312/Galaxi/Log/ConsoleText.java
Expand Up @@ -215,7 +215,7 @@ public ConsoleText onClick(URL value) {
public URL onClick() {
try {
if (element.contains("a")) {
return new URL(element.getRawString("a"));
return new URL(element.getString("a"));
} else return null;
} catch (MalformedURLException e) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion GalaxiAPI/src/net/ME1312/Galaxi/Log/TextElement.java
Expand Up @@ -66,7 +66,7 @@ protected void load() {
* @return Message
*/
public String message() {
return element.getRawString("msg");
return element.getString("msg");
}

/**
Expand Down

0 comments on commit 89bbe82

Please sign in to comment.