From 6b176bebf3cd2869b05d836a99fdc9bd9ac6a785 Mon Sep 17 00:00:00 2001 From: Tobias Gremeyer Date: Sun, 31 Mar 2019 21:53:35 +0000 Subject: [PATCH] Block range fixes (#1571) * Veil of Evil class creation Signed-off-by: tobias * Some getBlockRange() oversights. * Delete RitualVeilOfEvil.java should not be in this branch. * Removed TODO. --- .../java/WayofTime/bloodmagic/ritual/types/RitualGrounding.java | 2 +- .../bloodmagic/ritual/types/RitualWellOfSuffering.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/WayofTime/bloodmagic/ritual/types/RitualGrounding.java b/src/main/java/WayofTime/bloodmagic/ritual/types/RitualGrounding.java index 5a8795c0..2aa7a7d1 100644 --- a/src/main/java/WayofTime/bloodmagic/ritual/types/RitualGrounding.java +++ b/src/main/java/WayofTime/bloodmagic/ritual/types/RitualGrounding.java @@ -64,7 +64,7 @@ public class RitualGrounding extends Ritual { double vengefulDrained = 0; /* Actual ritual stuff begins here */ - AreaDescriptor groundingRange = getBlockRange(GROUNDING_RANGE); + AreaDescriptor groundingRange = masterRitualStone.getBlockRange(GROUNDING_RANGE); List entities = world.getEntitiesWithinAABB(EntityLivingBase.class, groundingRange.getAABB(pos)); for (EntityLivingBase entity : entities) { if (totalEffects >= maxEffects) { diff --git a/src/main/java/WayofTime/bloodmagic/ritual/types/RitualWellOfSuffering.java b/src/main/java/WayofTime/bloodmagic/ritual/types/RitualWellOfSuffering.java index 302af3cd..921963ff 100644 --- a/src/main/java/WayofTime/bloodmagic/ritual/types/RitualWellOfSuffering.java +++ b/src/main/java/WayofTime/bloodmagic/ritual/types/RitualWellOfSuffering.java @@ -71,7 +71,7 @@ public class RitualWellOfSuffering extends Ritual { if (tile instanceof TileAltar) { TileAltar tileAltar = (TileAltar) tile; - AreaDescriptor damageRange = getBlockRange(DAMAGE_RANGE); + AreaDescriptor damageRange = masterRitualStone.getBlockRange(DAMAGE_RANGE); AxisAlignedBB range = damageRange.getAABB(pos); List entities = world.getEntitiesWithinAABB(EntityLivingBase.class, range);