Fix fissure applying to anvils
This commit is contained in:
parent
ecb56bf450
commit
9e2ba8c653
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user