Fix single language inventories
This commit is contained in:
@@ -131,7 +131,7 @@ public class Inventories implements Listener {
|
||||
meta.setLore(Arrays.asList(lores));
|
||||
}
|
||||
stack.setItemMeta(meta);
|
||||
stacks.put(lang, stack);
|
||||
stacks.put("global", stack);
|
||||
return stacks;
|
||||
}
|
||||
|
||||
@@ -229,7 +229,7 @@ public class Inventories implements Listener {
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user