From e2f2968813436126cc713f0153a499c02250de71 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 5 Aug 2022 12:02:08 +0200 Subject: [PATCH] Close inventory on world reset Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/BauCommand.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index aebf76a..9f59bf4 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -246,9 +246,10 @@ public class BauCommand extends BasicCommand { inventory.addItem(8, new SWItem(Message.parse("BAU_DELETE_GUI_CANCEL", p), 1), click -> inventory.close() ); - inventory.addItem(0, new SWItem(Message.parse("BAU_DELETE_GUI_DELETE", p), 10), click -> - worldDeletion.run() - ); + inventory.addItem(0, new SWItem(Message.parse("BAU_DELETE_GUI_DELETE", p), 10), click -> { + worldDeletion.run(); + inventory.close(); + }); inventory.open(); }