Fix single language inventories
This commit is contained in:
@@ -131,7 +131,7 @@ public class Inventories implements Listener {
|
|||||||
meta.setLore(Arrays.asList(lores));
|
meta.setLore(Arrays.asList(lores));
|
||||||
}
|
}
|
||||||
stack.setItemMeta(meta);
|
stack.setItemMeta(meta);
|
||||||
stacks.put(lang, stack);
|
stacks.put("global", stack);
|
||||||
return stacks;
|
return stacks;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ public class Inventories implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void openInventory(String inv, Player P) {
|
public static void openInventory(String inv, Player P) {
|
||||||
P.openInventory(invs.get(inv).get(Core.getPlayerLang(P)));
|
P.openInventory(invs.get(inv).get(invType.get(inv) ? Core.getPlayerLang(P) : "global"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
|||||||
Reference in New Issue
Block a user