From 36f4e6b5a169f74a6a3e6fb8f5667af79a36d4f3 Mon Sep 17 00:00:00 2001 From: samczsun Date: Wed, 15 Mar 2017 17:59:49 -0400 Subject: [PATCH] Change more closeInventory calls --- .../nautilus/game/arcade/game/games/champions/ChampionsCTF.java | 2 +- .../game/arcade/game/games/champions/ChampionsDominate.java | 2 +- .../nautilus/game/arcade/game/games/champions/ChampionsTDM.java | 2 +- .../nautilus/game/arcade/game/games/common/TeamDeathmatch.java | 2 +- .../src/nautilus/game/arcade/game/games/smash/SuperSmash.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsCTF.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsCTF.java index 32855df7d..d419b8c3f 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsCTF.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsCTF.java @@ -106,7 +106,7 @@ public class ChampionsCTF extends CaptureTheFlag if (GetKit(player) == null) { SetKit(player, GetKits()[2], true); - player.closeInventory(); + UtilPlayer.closeInventoryIfOpen(player); } } diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsDominate.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsDominate.java index 52763c8a3..226a3e364 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsDominate.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsDominate.java @@ -98,7 +98,7 @@ public class ChampionsDominate extends Domination if (GetKit(player) == null) { SetKit(player, GetKits()[2], true); - player.closeInventory(); + UtilPlayer.closeInventoryIfOpen(player); } } diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsTDM.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsTDM.java index 8baa4a01c..f8d62e341 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsTDM.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/champions/ChampionsTDM.java @@ -98,7 +98,7 @@ public class ChampionsTDM extends TeamDeathmatch if (GetKit(player) == null) { SetKit(player, GetKits()[2], true); - player.closeInventory(); + UtilPlayer.closeInventoryIfOpen(player); } } diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/common/TeamDeathmatch.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/common/TeamDeathmatch.java index 7beb30f63..293047672 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/common/TeamDeathmatch.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/common/TeamDeathmatch.java @@ -196,7 +196,7 @@ public class TeamDeathmatch extends TeamGame if (GetKit(player) == null) { SetKit(player, GetKits()[2], true); - player.closeInventory(); + UtilPlayer.closeInventoryIfOpen(player); } } diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/smash/SuperSmash.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/smash/SuperSmash.java index a121545f2..ba21dfd17 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/smash/SuperSmash.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/smash/SuperSmash.java @@ -511,7 +511,7 @@ public abstract class SuperSmash extends Game if (announce) { - player.closeInventory(); + UtilPlayer.closeInventoryIfOpen(player); player.playSound(player.getLocation(), Sound.ORB_PICKUP, 2f, 1f); UtilPlayer.message(player, F.main("Kit", "You equipped " + F.elem(kit.GetFormattedName() + " Kit") + ".")); kit.ApplyKit(player);