Only allow blocks to be broken by arrows if they are placed by players

This commit is contained in:
Sam 2018-02-28 21:38:07 +00:00 committed by Alexander Meech
parent a1b272b5a4
commit 4d01d75c39
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import mineplex.core.common.util.UtilEnt;
import mineplex.core.game.kit.GameKit;
import nautilus.game.arcade.ArcadeManager;
import nautilus.game.arcade.game.games.cakewars.CakeWars;
import nautilus.game.arcade.kit.Kit;
import nautilus.game.arcade.kit.Perk;
import nautilus.game.arcade.kit.perks.PerkFletcher;
@ -71,7 +72,7 @@ public class KitCakeArcher extends Kit
{
Block block = UtilEnt.getHitBlock(event.getEntity());
if (block.getType() != Material.WOOL)
if (block.getType() != Material.WOOL || !((CakeWars) Manager.GetGame()).getCakePlayerModule().getPlacedBlocks().contains(block))
{
return;
}