Late git push is late
This commit is contained in:
parent
b962ede72d
commit
a1ca81423b
9 changed files with 62 additions and 31 deletions
|
@ -180,7 +180,8 @@ public class SpellHelper
|
|||
|
||||
public static void evaporateWaterBlock(World world, int posX, int posY, int posZ)
|
||||
{
|
||||
Block block = Block.blocksList[world.getBlockId(posX, posY, posZ)];
|
||||
int id = world.getBlockId(posX, posY, posZ);
|
||||
Block block = Block.blocksList[id];
|
||||
|
||||
if(block == Block.waterMoving || block == Block.waterStill)
|
||||
{
|
||||
|
@ -194,15 +195,17 @@ public class SpellHelper
|
|||
|
||||
if(oreName.contains("ore"))
|
||||
{
|
||||
String lowercaseOre = oreName;
|
||||
lowercaseOre.toLowerCase();
|
||||
String lowercaseOre = oreName.toLowerCase();
|
||||
boolean isAllowed = false;
|
||||
|
||||
|
||||
for(String str : AlchemicalWizardry.allowedCrushedOresArray)
|
||||
{
|
||||
if(lowercaseOre.contains(str))
|
||||
{
|
||||
String testStr = str.toLowerCase();
|
||||
|
||||
if(lowercaseOre.contains(testStr))
|
||||
{
|
||||
isAllowed = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,10 @@ public class MeleeDefaultEarth extends MeleeSpellCenteredWorldEffect
|
|||
if(!world.isAirBlock(posX + i, posY + j, posZ + k) && world.getBlockTileEntity(posX + i, posY + j, posZ + k)==null)
|
||||
{
|
||||
int id = world.getBlockId(posX + i, posY + j, posZ + k);
|
||||
if(Block.blocksList[id].getBlockHardness(world, posX + i, posY + j, posZ + k)==-1)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int meta = world.getBlockMetadata(posX + i, posY + j, posZ + k);
|
||||
|
||||
EntityFallingSand entity = new EntityFallingSand(world, posX + i + 0.5f, posY + j + 0.5f, posZ + k + 0.5f, id, meta);
|
||||
|
@ -36,6 +40,5 @@ public class MeleeDefaultEarth extends MeleeSpellCenteredWorldEffect
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,11 +23,9 @@ public class SelfOffensiveWind extends SelfSpellEffect
|
|||
public void onSelfUse(World world, EntityPlayer player)
|
||||
{
|
||||
Vec3 vec = player.getLookVec();
|
||||
double wantedVelocity = 1.2 + this.powerUpgrades*0.3;
|
||||
double wantedVelocity = 1.5 + this.powerUpgrades*0.4;
|
||||
|
||||
player.motionX = vec.xCoord * wantedVelocity;
|
||||
player.motionY = vec.yCoord * wantedVelocity;
|
||||
player.motionZ = vec.zCoord * wantedVelocity;
|
||||
SpellHelper.setPlayerSpeedFromServer(player, vec.xCoord * wantedVelocity, vec.yCoord * wantedVelocity, vec.zCoord * wantedVelocity);
|
||||
|
||||
player.fallDistance = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue