From 6b2cd4d954089771f51b98b7b332dd192a8239ec Mon Sep 17 00:00:00 2001 From: Indyuce Date: Sat, 4 Apr 2020 01:22:59 +0200 Subject: [PATCH] Fixed a 1.12 comp issue --- src/main/java/net/Indyuce/mmocore/skill/Deep_Wound.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/skill/Deep_Wound.java b/src/main/java/net/Indyuce/mmocore/skill/Deep_Wound.java index 763ba490..7746778d 100644 --- a/src/main/java/net/Indyuce/mmocore/skill/Deep_Wound.java +++ b/src/main/java/net/Indyuce/mmocore/skill/Deep_Wound.java @@ -36,7 +36,7 @@ public class Deep_Wound extends Skill { LivingEntity target = cast.getTarget(); target.getWorld().playSound(target.getLocation(), Sound.ENTITY_ZOMBIE_ATTACK_IRON_DOOR, 2, 2); target.getWorld().spawnParticle(Particle.CRIT, target.getLocation().add(0, target.getHeight() / 2, 0), 32, 0, 0, 0, .7); - target.getWorld().spawnParticle(Particle.BLOCK_CRACK, target.getLocation().add(0, target.getHeight() / 2, 0), 32, 0, 0, 0, 2, Material.REDSTONE_BLOCK.createBlockData()); + MMOLib.plugin.getVersion().getWrapper().spawnParticle(Particle.BLOCK_CRACK, target.getLocation().add(0, target.getHeight() / 2, 0), 32, 0, 0, 0, 2, Material.REDSTONE_BLOCK); double max = target.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue(); double ratio = (max - target.getHealth()) / max;