Skip to content

Commit

Permalink
Fix legacy method invocation in ExprLanguage (#4616)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matocolotoe authored Feb 21, 2022
1 parent 96107a9 commit d22f857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprLanguage.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public String convert(Player p) {
if (USE_DEPRECATED_METHOD) {
assert getLocaleMethod != null;
try {
return (String) getLocaleMethod.invoke();
return (String) getLocaleMethod.invoke(p.spigot());
} catch (Throwable e) {
Skript.exception(e);
return null;
Expand Down

0 comments on commit d22f857

Please sign in to comment.