Attempt to fix repository

This commit is contained in:
WayofTime 2015-07-31 12:09:09 -04:00
parent e242207d50
commit 1aac4686db
932 changed files with 39272 additions and 11544 deletions

View file

@ -8,7 +8,6 @@ import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
import WayofTime.alchemicalWizardry.api.tile.IBloodAltar;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
import java.util.ArrayList;
@ -29,8 +28,10 @@ public class RitualEffectFeatheredKnife extends RitualEffect
String owner = ritualStone.getOwner();
int currentEssence = SoulNetworkHandler.getCurrentEssence(owner);
World world = ritualStone.getWorldObj();
BlockPos pos = ritualStone.getPosition();
World world = ritualStone.getWorld();
int x = ritualStone.getXCoord();
int y = ritualStone.getYCoord();
int z = ritualStone.getZCoord();
boolean hasPotentia = this.canDrainReagent(ritualStone, ReagentRegistry.potentiaReagent, potentiaDrain, false);
@ -50,10 +51,9 @@ public class RitualEffectFeatheredKnife extends RitualEffect
{
for (int k = -10; k <= 10; k++)
{
BlockPos newPos = pos.add(i, k, j);
if (world.getTileEntity(newPos) instanceof IBloodAltar)
if (world.getTileEntity(x + i, y + k, z + j) instanceof IBloodAltar)
{
tileAltar = (IBloodAltar) world.getTileEntity(newPos);
tileAltar = (IBloodAltar) world.getTileEntity(x + i, y + k, z + j);
testFlag = true;
}
}
@ -69,9 +69,10 @@ public class RitualEffectFeatheredKnife extends RitualEffect
double range = hasReductus ? 8 : 15;
double vertRange = hasReductus ? 8 : 20;
List<EntityPlayer> list = SpellHelper.getPlayersInRange(world, pos.getX(), pos.getY(), pos.getZ(), range, vertRange);
List<EntityPlayer> list = SpellHelper.getPlayersInRange(world, x + 0.5, y + 0.5, z + 0.5, range, vertRange);
int entityCount = 0;
boolean flag = false;
if (currentEssence < this.getCostPerRefresh() * list.size())
{
@ -135,7 +136,7 @@ public class RitualEffectFeatheredKnife extends RitualEffect
@Override
public List<RitualComponent> getRitualComponentList()
{
ArrayList<RitualComponent> featheredKnifeRitual = new ArrayList<RitualComponent>();
ArrayList<RitualComponent> featheredKnifeRitual = new ArrayList();
featheredKnifeRitual.add(new RitualComponent(1, 0, 0, RitualComponent.DUSK));
featheredKnifeRitual.add(new RitualComponent(-1, 0, 0, RitualComponent.DUSK));
featheredKnifeRitual.add(new RitualComponent(0, 0, 1, RitualComponent.DUSK));