Commit 4c87877e authored by Nico Eckes's avatar Nico Eckes

Fix wrong chest reference

parent 5ea17c9d
Pipeline #867 failed with stages
in 8 minutes and 49 seconds
......@@ -51,7 +51,7 @@ public class Menus {
items.add(new MenuEntry(backItem, ctx->displayMainMenu(ctx.player)));
items.addAll(BanList.INSTANCE.bans.stream().map(e->new MenuEntry(e.toItem(), ctx->displayBan(ctx.player, e))).collect(Collectors.toList()));
items.add(new MenuEntry(new DisplayStackGen(Items.water_bucket).name("New ban entry").gen(), ctx->{BanEntry e=new BanEntry(); displayBan(ctx.player, e); BanList.INSTANCE.addBan(e);}));
items.add(new MenuEntry(new DisplayStackGen(Items.chest).name("Save ban list").gen(), ctx->{BanList.INSTANCE.save();}));
items.add(new MenuEntry(new DisplayStackGen(Blocks.chest).name("Save ban list").gen(), ctx->{BanList.INSTANCE.save();}));
new InventoryMenu("Banned Items", player, items).display();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment