Skip to content

Commit

Permalink
Fix Script.getScriptExtension()
Browse files Browse the repository at this point in the history
  • Loading branch information
mchorse committed Dec 8, 2022
1 parent 94ecf96 commit c759097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mchorse/mappet/api/scripts/Script.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public String getScriptExtension()
String id = this.getId();
int index = id.lastIndexOf('.');

return index >= 0 ? id.substring(index) : "js";
return index >= 0 ? id.substring(index + 1) : "js";
}

public Object execute(String function, DataContext context) throws ScriptException, NoSuchMethodException
Expand Down

0 comments on commit c759097

Please sign in to comment.