From c220f269c8c392f26b5a0390d390ca491c964eed Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 16 Aug 2016 15:11:44 +0200 Subject: [PATCH] Reset shop item after cancelled shop break --- .../de/epiceric/shopchest/listeners/ChestProtectListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/epiceric/shopchest/listeners/ChestProtectListener.java b/src/main/java/de/epiceric/shopchest/listeners/ChestProtectListener.java index e54debf..072ed45 100644 --- a/src/main/java/de/epiceric/shopchest/listeners/ChestProtectListener.java +++ b/src/main/java/de/epiceric/shopchest/listeners/ChestProtectListener.java @@ -73,6 +73,7 @@ public class ChestProtectListener implements Listener { } } + shop.getItem().resetForPlayer(p); e.setCancelled(true); e.getPlayer().sendMessage(LanguageUtils.getMessage(LocalizedMessage.Message.CANNOT_BREAK_SHOP)); }