Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from Techcraft7/patch-1
Browse files Browse the repository at this point in the history
Fix for #9
  • Loading branch information
RealRTTV authored Nov 12, 2023
2 parents d114489 + 9bdb307 commit a8e4c9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/ca/rttv/chatcalc/ChatCalc.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public static boolean tryParse(TextFieldWidget field) {
int cursor = field.getCursor();
String text = ChatHelper.getWord(originalText, cursor);
String[] split = text.split("=");
if (split.length == 0) {
return false;
}
if (split.length == 2) {
if (Config.JSON.has(split[0])) {
Config.JSON.addProperty(split[0], split[1]);
Expand Down

0 comments on commit a8e4c9b

Please sign in to comment.