Block range fixes (#1571)
* Veil of Evil class creation Signed-off-by: tobias <angryaeon@icloud.com> * Some getBlockRange() oversights. * Delete RitualVeilOfEvil.java should not be in this branch. * Removed TODO.
This commit is contained in:
parent
dea733a76e
commit
6b176bebf3
|
@ -64,7 +64,7 @@ public class RitualGrounding extends Ritual {
|
||||||
double vengefulDrained = 0;
|
double vengefulDrained = 0;
|
||||||
|
|
||||||
/* Actual ritual stuff begins here */
|
/* Actual ritual stuff begins here */
|
||||||
AreaDescriptor groundingRange = getBlockRange(GROUNDING_RANGE);
|
AreaDescriptor groundingRange = masterRitualStone.getBlockRange(GROUNDING_RANGE);
|
||||||
List<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, groundingRange.getAABB(pos));
|
List<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, groundingRange.getAABB(pos));
|
||||||
for (EntityLivingBase entity : entities) {
|
for (EntityLivingBase entity : entities) {
|
||||||
if (totalEffects >= maxEffects) {
|
if (totalEffects >= maxEffects) {
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class RitualWellOfSuffering extends Ritual {
|
||||||
if (tile instanceof TileAltar) {
|
if (tile instanceof TileAltar) {
|
||||||
TileAltar tileAltar = (TileAltar) tile;
|
TileAltar tileAltar = (TileAltar) tile;
|
||||||
|
|
||||||
AreaDescriptor damageRange = getBlockRange(DAMAGE_RANGE);
|
AreaDescriptor damageRange = masterRitualStone.getBlockRange(DAMAGE_RANGE);
|
||||||
AxisAlignedBB range = damageRange.getAABB(pos);
|
AxisAlignedBB range = damageRange.getAABB(pos);
|
||||||
|
|
||||||
List<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, range);
|
List<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, range);
|
||||||
|
|
Loading…
Reference in a new issue