Fix fissure applying to anvils

This commit is contained in:
AlexTheCoder 2016-07-30 09:36:38 -04:00
parent ecb56bf450
commit 9e2ba8c653

View File

@ -12,6 +12,7 @@ import mineplex.core.common.util.UtilServer;
import mineplex.minecraft.game.classcombat.Skill.Mage.events.FissureModifyBlockEvent;
import org.bukkit.Effect;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player;
@ -133,6 +134,10 @@ public class FissureData
return false;
if (block.getRelative(BlockFace.UP).getType().toString().contains("BANNER"))
return false;
if (block.getType() == Material.ANVIL)
return false;
if (block.getRelative(BlockFace.UP).getType() == Material.ANVIL)
return false;
Block up = block.getRelative(0, _height + 1, 0);