Allow placing blocks above the cake if shifting

This commit is contained in:
Sam 2017-10-30 09:20:32 +00:00 committed by Alexander Meech
parent 84afbc242d
commit e21894ea75

View File

@ -182,6 +182,14 @@ public class CakeTeamModule extends CakeModule
return;
}
ItemStack itemStack = player.getItemInHand();
if (itemStack != null && itemStack.getType() != Material.AIR && player.isSneaking())
{
event.setCancelled(false);
return;
}
_teams.forEach((team, cakeTeam) ->
{
if (!block.getLocation().equals(cakeTeam.getCake()))