SteamWar/BauSystem2.0
Archiviert
12
0

Fix HotbarCommand
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-08-05 21:22:39 +02:00
Ursprung c4e7c84348
Commit a35caa5d37

Datei anzeigen

@ -49,7 +49,7 @@ public class HotbarCommand extends SWCommand {
@Register(value = "show", description = "HOTBAR_HELP_SHOW") @Register(value = "show", description = "HOTBAR_HELP_SHOW")
public void showHotbar(Player p) { public void showHotbar(Player p) {
SWInventory inv = new SWInventory(p, 9, BauSystem.MESSAGE.parse("HOTBAR_INVENTORY", p)); SWInventory inv = new SWInventory(p, 18, BauSystem.MESSAGE.parse("HOTBAR_INVENTORY", p));
ItemStack[] hotbar = DefaultHotbar.getItems(p); ItemStack[] hotbar = DefaultHotbar.getItems(p);
for (int i = 0; i < hotbar.length; i++) { for (int i = 0; i < hotbar.length; i++) {
if (hotbar[i] == null) continue; if (hotbar[i] == null) continue;