From 2554adbe02a9d884ac87d04b1780f3925e2adb20 Mon Sep 17 00:00:00 2001 From: B1G-FUNGUS Date: Mon, 4 Oct 2021 20:28:45 -0700 Subject: [PATCH] minor changes --- .../java/top/penowl/quidproquo/rituals/FakePlayerRitual.java | 3 +++ .../java/top/penowl/quidproquo/rituals/LightningRitual.java | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/top/penowl/quidproquo/rituals/FakePlayerRitual.java b/src/main/java/top/penowl/quidproquo/rituals/FakePlayerRitual.java index 2493407..d9448eb 100644 --- a/src/main/java/top/penowl/quidproquo/rituals/FakePlayerRitual.java +++ b/src/main/java/top/penowl/quidproquo/rituals/FakePlayerRitual.java @@ -9,6 +9,8 @@ import org.bukkit.entity.Slime; import org.bukkit.inventory.EntityEquipment; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.SkullMeta; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; import java.util.Random; @@ -38,6 +40,7 @@ public class FakePlayerRitual extends Ritual { armorStand.setCustomName(caster.getName()); armorStand.setCustomNameVisible(true); slime.setPassenger(armorStand); + slime.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, 10*20, 50)); slime.setSize(1); EntityEquipment equipment = armorStand.getEquipment(); ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) 3); diff --git a/src/main/java/top/penowl/quidproquo/rituals/LightningRitual.java b/src/main/java/top/penowl/quidproquo/rituals/LightningRitual.java index 33314a7..cd9d8d3 100644 --- a/src/main/java/top/penowl/quidproquo/rituals/LightningRitual.java +++ b/src/main/java/top/penowl/quidproquo/rituals/LightningRitual.java @@ -22,7 +22,6 @@ public class LightningRitual extends Ritual { @Override public void execute(Player caster, Player target, Location location) { - // Does this actually get the overworld? World world = location.getWorld(); List players = world.getPlayers(); for(Player player : players) {