From 79e808814ade4eb3f6ca9b46a76a2a30caecbbd0 Mon Sep 17 00:00:00 2001 From: Chiss Date: Thu, 25 Sep 2014 20:52:13 +1000 Subject: [PATCH] Minestrike cleans up incendiary at the end of rounds --- .../src/mineplex/core/blockrestore/BlockRestore.java | 8 ++++++++ .../game/arcade/game/games/minestrike/MineStrike.java | 1 + 2 files changed, 9 insertions(+) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/blockrestore/BlockRestore.java b/Plugins/Mineplex.Core/src/mineplex/core/blockrestore/BlockRestore.java index 174e2769a..8641ac476 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/blockrestore/BlockRestore.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/blockrestore/BlockRestore.java @@ -94,6 +94,14 @@ public class BlockRestore extends MiniPlugin _blocks.remove(block).restore(); } + public void RestoreAll() + { + for (BlockRestoreData data : _blocks.values()) + data.restore(); + + _blocks.clear(); + } + public HashSet RestoreBlockAround(Material type, Location location, int radius) { HashSet restored = new HashSet(); diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minestrike/MineStrike.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minestrike/MineStrike.java index 437395bb8..87bc77503 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minestrike/MineStrike.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minestrike/MineStrike.java @@ -1910,6 +1910,7 @@ public class MineStrike extends TeamGame //Incendiary _incendiary.clear(); + Manager.GetBlockRestore().RestoreAll(); //Restock Ammo for (Gun gun : _gunsEquipped.keySet())