Don't check spectators

This commit is contained in:
Sam 2017-11-08 22:38:39 +00:00 committed by Alexander Meech
parent 96bfb729bf
commit c4a883f5d1

View File

@ -140,7 +140,7 @@ public class CakePlayerModule extends CakeModule
_game.GetPlayers(true).forEach(player ->
{
if (UtilInv.contains(player, RUNE_OF_HOLDING.getType(), RUNE_OF_HOLDING.getData().getData(), 1))
if (UtilPlayer.isSpectator(player) || UtilInv.contains(player, RUNE_OF_HOLDING.getType(), RUNE_OF_HOLDING.getData().getData(), 1))
{
return;
}