Skip to content

Commit 9e260c9

Browse files
committed
ゲーム中以外は壊せないように
1 parent e76b3d8 commit 9e260c9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/com/github/elic0de/hungergames/listener/EventListener.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ private void blockBreak(BlockBreakEvent event) {
153153
if (block.getType() == Material.CHEST && game.getDeathChest().containsDeathChest(block)) {
154154
game.getDeathChest().breakDeathChest(block);
155155
}
156+
return;
156157
}
158+
event.setCancelled(true);
157159
}
158160

159161
@EventHandler

0 commit comments

Comments
 (0)