Skip to content

Commit

Permalink
Aliases/default.lang - change "of" location in lang file
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed May 12, 2024
1 parent 4d4f56b commit 09760cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/aliases/Aliases.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public static ItemType parseItemType(String s) {
}

String lc = s.toLowerCase(Locale.ENGLISH);
String of = Language.getSpaced("enchantments.of").toLowerCase();
String of = Language.getSpaced("of").toLowerCase();
int c = -1;
outer: while ((c = lc.indexOf(of, c + 1)) != -1) {
ItemType t2 = t.clone();
Expand Down
5 changes: 1 addition & 4 deletions src/main/resources/lang/default.lang
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ not: not
# not a: not a(n) # @a:not a @an:not an @x:not
neither: neither
nor: nor
of: of

genders:
0:
Expand Down Expand Up @@ -45,10 +46,6 @@ aliases:

named: named

# -- Enchantments --
enchantments:
of: of

# -- Potion Effects --
potions:
speed: speed, swiftness
Expand Down

0 comments on commit 09760cb

Please sign in to comment.