From 97b06463308a7129b775008201ccf502159aa406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20=C3=96NCEL?= Date: Mon, 8 Feb 2021 03:04:02 +0300 Subject: [PATCH] Fixes reversed arguments in Noun's static toString method. --- src/main/java/ch/njol/skript/localization/Noun.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/njol/skript/localization/Noun.java b/src/main/java/ch/njol/skript/localization/Noun.java index 7494003dc1a..d971d0d8b06 100644 --- a/src/main/java/ch/njol/skript/localization/Noun.java +++ b/src/main/java/ch/njol/skript/localization/Noun.java @@ -387,7 +387,7 @@ public static boolean isLocalDefiniteArticle(final String s) { } public static String toString(final String singular, final String plural, final int gender, final int flags) { - return getArticleWithSpace(flags, gender) + ((flags & Language.F_PLURAL) != 0 ? plural : singular); + return getArticleWithSpace(gender, flags) + ((flags & Language.F_PLURAL) != 0 ? plural : singular); } }