Only allow blocks to be broken by arrows if they are placed by players
This commit is contained in:
parent
a1b272b5a4
commit
4d01d75c39
@ -15,6 +15,7 @@ import mineplex.core.common.util.UtilEnt;
|
|||||||
import mineplex.core.game.kit.GameKit;
|
import mineplex.core.game.kit.GameKit;
|
||||||
|
|
||||||
import nautilus.game.arcade.ArcadeManager;
|
import nautilus.game.arcade.ArcadeManager;
|
||||||
|
import nautilus.game.arcade.game.games.cakewars.CakeWars;
|
||||||
import nautilus.game.arcade.kit.Kit;
|
import nautilus.game.arcade.kit.Kit;
|
||||||
import nautilus.game.arcade.kit.Perk;
|
import nautilus.game.arcade.kit.Perk;
|
||||||
import nautilus.game.arcade.kit.perks.PerkFletcher;
|
import nautilus.game.arcade.kit.perks.PerkFletcher;
|
||||||
@ -71,7 +72,7 @@ public class KitCakeArcher extends Kit
|
|||||||
{
|
{
|
||||||
Block block = UtilEnt.getHitBlock(event.getEntity());
|
Block block = UtilEnt.getHitBlock(event.getEntity());
|
||||||
|
|
||||||
if (block.getType() != Material.WOOL)
|
if (block.getType() != Material.WOOL || !((CakeWars) Manager.GetGame()).getCakePlayerModule().getPlacedBlocks().contains(block))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user