Change more closeInventory calls

This commit is contained in:
samczsun 2017-03-15 17:59:49 -04:00 committed by cnr
parent 8e92317b9c
commit 36f4e6b5a1
5 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ public class ChampionsCTF extends CaptureTheFlag
if (GetKit(player) == null)
{
SetKit(player, GetKits()[2], true);
player.closeInventory();
UtilPlayer.closeInventoryIfOpen(player);
}
}

View File

@ -98,7 +98,7 @@ public class ChampionsDominate extends Domination
if (GetKit(player) == null)
{
SetKit(player, GetKits()[2], true);
player.closeInventory();
UtilPlayer.closeInventoryIfOpen(player);
}
}

View File

@ -98,7 +98,7 @@ public class ChampionsTDM extends TeamDeathmatch
if (GetKit(player) == null)
{
SetKit(player, GetKits()[2], true);
player.closeInventory();
UtilPlayer.closeInventoryIfOpen(player);
}
}

View File

@ -196,7 +196,7 @@ public class TeamDeathmatch extends TeamGame
if (GetKit(player) == null)
{
SetKit(player, GetKits()[2], true);
player.closeInventory();
UtilPlayer.closeInventoryIfOpen(player);
}
}

View File

@ -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);