Allow placing blocks above the cake if shifting
This commit is contained in:
parent
84afbc242d
commit
e21894ea75
@ -182,6 +182,14 @@ public class CakeTeamModule extends CakeModule
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ItemStack itemStack = player.getItemInHand();
|
||||||
|
|
||||||
|
if (itemStack != null && itemStack.getType() != Material.AIR && player.isSneaking())
|
||||||
|
{
|
||||||
|
event.setCancelled(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_teams.forEach((team, cakeTeam) ->
|
_teams.forEach((team, cakeTeam) ->
|
||||||
{
|
{
|
||||||
if (!block.getLocation().equals(cakeTeam.getCake()))
|
if (!block.getLocation().equals(cakeTeam.getCake()))
|
||||||
|
Loading…
Reference in New Issue
Block a user