mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 05:02:39 +00:00
quick fix : Redundant type cast
This commit is contained in:
1 parent
b34eec4dea
commit
2d13e6185e
84 files changed
+426
-434
No files matched your search
@@ -41,9 +41,9 @@ public class MiningExplosion extends Explosion {
|
||||
|| j == this.field_77289_h - 1
|
||||
|| k == 0
|
||||
|| k == this.field_77289_h - 1) {
|
||||
double d3 = (double) ((float) i / ((float) this.field_77289_h - 1.0F) * 2.0F - 1.0F);
|
||||
double d4 = (double) ((float) j / ((float) this.field_77289_h - 1.0F) * 2.0F - 1.0F);
|
||||
double d5 = (double) ((float) k / ((float) this.field_77289_h - 1.0F) * 2.0F - 1.0F);
|
||||
double d3 = (float) i / ((float) this.field_77289_h - 1.0F) * 2.0F - 1.0F;
|
||||
double d4 = (float) j / ((float) this.field_77289_h - 1.0F) * 2.0F - 1.0F;
|
||||
double d5 = (float) k / ((float) this.field_77289_h - 1.0F) * 2.0F - 1.0F;
|
||||
double d6 = Math.sqrt(d3 * d3 + d4 * d4 + d5 * d5);
|
||||
d3 /= d6;
|
||||
d4 /= d6;
|
||||
@@ -93,7 +93,7 @@ public class MiningExplosion extends Explosion {
|
||||
List list = this.world.getEntitiesWithinAABBExcludingEntity(
|
||||
this.exploder,
|
||||
AxisAlignedBB.getBoundingBox(
|
||||
(double) i, (double) k, (double) i2, (double) j, (double) l1, (double) j2));
|
||||
i, k, i2, j, l1, j2));
|
||||
Vec3 vec3 = Vec3.createVectorHelper(this.explosionX, this.explosionY, this.explosionZ);
|
||||
|
||||
for (int k2 = 0; k2 < list.size(); ++k2) {
|
||||
@@ -105,13 +105,13 @@ public class MiningExplosion extends Explosion {
|
||||
d0 = entity.posX - this.explosionX;
|
||||
d1 = entity.posY + (double) entity.getEyeHeight() - this.explosionY;
|
||||
d2 = entity.posZ - this.explosionZ;
|
||||
double d8 = (double) MathHelper.sqrt_double(d0 * d0 + d1 * d1 + d2 * d2);
|
||||
double d8 = MathHelper.sqrt_double(d0 * d0 + d1 * d1 + d2 * d2);
|
||||
|
||||
if (d8 != 0.0D) {
|
||||
d0 /= d8;
|
||||
d1 /= d8;
|
||||
d2 /= d8;
|
||||
double d9 = (double) this.world.getBlockDensity(vec3, entity.boundingBox);
|
||||
double d9 = this.world.getBlockDensity(vec3, entity.boundingBox);
|
||||
double d10 = (1.0D - d7) * d9;
|
||||
if (!(entity instanceof EntityItem))
|
||||
entity.attackEntityFrom(DamageSource.setExplosionSource(this), (float)
|
||||
@@ -123,7 +123,7 @@ public class MiningExplosion extends Explosion {
|
||||
|
||||
if (entity instanceof EntityPlayer) {
|
||||
this.field_77288_k.put(
|
||||
(EntityPlayer) entity, Vec3.createVectorHelper(d0 * d10, d1 * d10, d2 * d10));
|
||||
entity, Vec3.createVectorHelper(d0 * d10, d1 * d10, d2 * d10));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -168,18 +168,18 @@ public class MiningExplosion extends Explosion {
|
||||
l = this.world.getBlock(i, j, k);
|
||||
|
||||
if (par1) {
|
||||
double d0 = (double) ((float) i + this.world.rand.nextFloat());
|
||||
double d1 = (double) ((float) j + this.world.rand.nextFloat());
|
||||
double d2 = (double) ((float) k + this.world.rand.nextFloat());
|
||||
double d0 = (float) i + this.world.rand.nextFloat();
|
||||
double d1 = (float) j + this.world.rand.nextFloat();
|
||||
double d2 = (float) k + this.world.rand.nextFloat();
|
||||
double d3 = d0 - this.explosionX;
|
||||
double d4 = d1 - this.explosionY;
|
||||
double d5 = d2 - this.explosionZ;
|
||||
double d6 = (double) MathHelper.sqrt_double(d3 * d3 + d4 * d4 + d5 * d5);
|
||||
double d6 = MathHelper.sqrt_double(d3 * d3 + d4 * d4 + d5 * d5);
|
||||
d3 /= d6;
|
||||
d4 /= d6;
|
||||
d5 /= d6;
|
||||
double d7 = 0.5D / (d6 / (double) this.explosionSize + 0.1D);
|
||||
d7 *= (double) (this.world.rand.nextFloat() * this.world.rand.nextFloat() + 0.3F);
|
||||
d7 *= this.world.rand.nextFloat() * this.world.rand.nextFloat() + 0.3F;
|
||||
d3 *= d7;
|
||||
d4 *= d7;
|
||||
d5 *= d7;
|
||||
|
||||
@@ -16,12 +16,12 @@ public class TDispenserBehaviorSpawnEgg extends BehaviorDefaultDispenseItem {
|
||||
public ItemStack dispenseStack(IBlockSource par1IBlockSource, ItemStack par2ItemStack) {
|
||||
EnumFacing enumfacing = BlockDispenser.func_149937_b(par1IBlockSource.getBlockMetadata());
|
||||
double d0 = par1IBlockSource.getX() + (double) enumfacing.getFrontOffsetX();
|
||||
double d1 = (double) ((float) par1IBlockSource.getYInt() + 0.2F);
|
||||
double d1 = (float) par1IBlockSource.getYInt() + 0.2F;
|
||||
double d2 = par1IBlockSource.getZ() + (double) enumfacing.getFrontOffsetZ();
|
||||
EntityLiving entity = TitleIcon.activateSpawnEgg(par2ItemStack, par1IBlockSource.getWorld(), d0, d1, d2, 0);
|
||||
|
||||
if (par2ItemStack.hasDisplayName()) {
|
||||
((EntityLiving) entity).setCustomNameTag(par2ItemStack.getDisplayName());
|
||||
entity.setCustomNameTag(par2ItemStack.getDisplayName());
|
||||
}
|
||||
|
||||
par2ItemStack.splitStack(1);
|
||||
|
||||
@@ -35,7 +35,7 @@ public class TinkerWorldEvents {
|
||||
public static void spawnEntityLiving(double x, double y, double z, EntityLiving entity, World world) {
|
||||
if (!world.isRemote) {
|
||||
entity.setPosition(x, y, z);
|
||||
entity.onSpawnWithEgg((IEntityLivingData) null);
|
||||
entity.onSpawnWithEgg(null);
|
||||
world.spawnEntityInWorld(entity);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ public class TinkerWorldProxyClient extends TinkerWorldProxyCommon {
|
||||
}
|
||||
|
||||
if (entityfx != null) {
|
||||
return (EntityFX) entityfx;
|
||||
return entityfx;
|
||||
} else {
|
||||
double d9 = 16.0D;
|
||||
|
||||
@@ -241,10 +241,10 @@ public class TinkerWorldProxyClient extends TinkerWorldProxyCommon {
|
||||
}
|
||||
|
||||
if (entityfx != null) {
|
||||
this.mc.effectRenderer.addEffect((EntityFX) entityfx);
|
||||
this.mc.effectRenderer.addEffect(entityfx);
|
||||
}
|
||||
|
||||
return (EntityFX) entityfx;
|
||||
return entityfx;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -24,7 +24,7 @@ public class OreberryBushEssence extends OreberryBush implements IPlantable {
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (world.getFullBlockLightValue(x, y, z) < 10 || meta % 4 == 1) {
|
||||
if (meta < 12) {
|
||||
world.setBlock(x, y, z, (Block) this, meta + 4, 3);
|
||||
world.setBlock(x, y, z, this, meta + 4, 3);
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
||||
@@ -69,9 +69,9 @@ public class SlimeExplosive extends TConstructBlock {
|
||||
if (!par1World.isRemote) {
|
||||
ExplosivePrimed entitytntprimed = new ExplosivePrimed(
|
||||
par1World,
|
||||
(double) ((float) par2 + 0.5F),
|
||||
(double) ((float) par3 + 0.5F),
|
||||
(double) ((float) par4 + 0.5F),
|
||||
(float) par2 + 0.5F,
|
||||
(float) par3 + 0.5F,
|
||||
(float) par4 + 0.5F,
|
||||
par5Explosion.getExplosivePlacedBy());
|
||||
entitytntprimed.fuse = par1World.rand.nextInt(entitytntprimed.fuse / 4) + entitytntprimed.fuse / 8;
|
||||
par1World.spawnEntityInWorld(entitytntprimed);
|
||||
@@ -80,7 +80,7 @@ public class SlimeExplosive extends TConstructBlock {
|
||||
|
||||
@Override
|
||||
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5) {
|
||||
this.primeTnt(par1World, par2, par3, par4, par5, (EntityLivingBase) null);
|
||||
this.primeTnt(par1World, par2, par3, par4, par5, null);
|
||||
}
|
||||
|
||||
public void primeTnt(
|
||||
@@ -89,9 +89,9 @@ public class SlimeExplosive extends TConstructBlock {
|
||||
if ((par5 % 2) == 1) {
|
||||
ExplosivePrimed entitytntprimed = new ExplosivePrimed(
|
||||
par1World,
|
||||
(double) ((float) par2 + 0.5F),
|
||||
(double) ((float) par3 + 0.5F),
|
||||
(double) ((float) par4 + 0.5F),
|
||||
(float) par2 + 0.5F,
|
||||
(float) par3 + 0.5F,
|
||||
(float) par4 + 0.5F,
|
||||
par6EntityLivingBase);
|
||||
par1World.spawnEntityInWorld(entitytntprimed);
|
||||
par1World.playSoundAtEntity(entitytntprimed, "random.fuse", 1.0F, 1.0F);
|
||||
|
||||
@@ -26,8 +26,8 @@ public class SoilBlock extends TConstructBlock {
|
||||
if (metadata == 3) {
|
||||
((EntityLivingBase) entity).heal(1);
|
||||
} else if (metadata == 4) {
|
||||
((EntityLivingBase) entity).attackEntityFrom(DamageSource.magic, 1);
|
||||
((EntityLivingBase) entity).setFire(1);
|
||||
entity.attackEntityFrom(DamageSource.magic, 1);
|
||||
entity.setFire(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ public class StoneTorch extends MantleBlock {
|
||||
*/
|
||||
protected boolean dropTorchIfCantStay(World par1World, int par2, int par3, int par4) {
|
||||
if (!this.canPlaceBlockAt(par1World, par2, par3, par4)) {
|
||||
if (par1World.getBlock(par2, par3, par4) == (Block) this) {
|
||||
if (par1World.getBlock(par2, par3, par4) == this) {
|
||||
this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
par1World.setBlockToAir(par2, par3, par4);
|
||||
// WorldHelper.setBlockToAir(par1World, par2, par3, par4);
|
||||
@@ -244,9 +244,9 @@ public class StoneTorch extends MantleBlock {
|
||||
*/
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random) {
|
||||
int meta = par1World.getBlockMetadata(par2, par3, par4);
|
||||
double d0 = (double) ((float) par2 + 0.5F);
|
||||
double d1 = (double) ((float) par3 + 0.7F);
|
||||
double d2 = (double) ((float) par4 + 0.5F);
|
||||
double d0 = (float) par2 + 0.5F;
|
||||
double d1 = (float) par3 + 0.7F;
|
||||
double d2 = (float) par4 + 0.5F;
|
||||
double d3 = 0.2199999988079071D;
|
||||
double d4 = 0.27000001072883606D;
|
||||
|
||||
|
||||
@@ -261,9 +261,9 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
}
|
||||
|
||||
float var8 = 0.05F;
|
||||
entityitem.motionX = (double) ((float) this.rand.nextGaussian() * var8);
|
||||
entityitem.motionY = (double) ((float) this.rand.nextGaussian() * var8 + 0.2F);
|
||||
entityitem.motionZ = (double) ((float) this.rand.nextGaussian() * var8);
|
||||
entityitem.motionX = (float) this.rand.nextGaussian() * var8;
|
||||
entityitem.motionY = (float) this.rand.nextGaussian() * var8 + 0.2F;
|
||||
entityitem.motionZ = (float) this.rand.nextGaussian() * var8;
|
||||
this.worldObj.spawnEntityInWorld(entityitem);
|
||||
}
|
||||
}
|
||||
@@ -392,7 +392,7 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
}
|
||||
}
|
||||
|
||||
double var51 = (double) MathHelper.wrapAngleTo180_float(this.rotationYaw - this.prevRotationYaw);
|
||||
double var51 = MathHelper.wrapAngleTo180_float(this.rotationYaw - this.prevRotationYaw);
|
||||
|
||||
if (var51 < -170.0D || var51 >= 170.0D) {
|
||||
this.rotationYaw += 180.0F;
|
||||
@@ -523,10 +523,10 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
|
||||
if (BlockRail.func_150051_a(var10)) {
|
||||
int var11 = 0;
|
||||
par3 = (double) var8;
|
||||
par3 = var8;
|
||||
|
||||
if (var11 >= 2 && var11 <= 5) {
|
||||
par3 = (double) (var8 + 1);
|
||||
par3 = var8 + 1;
|
||||
}
|
||||
|
||||
int[][] var12 = matrix[var11];
|
||||
@@ -622,7 +622,7 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
this.cargoItems = new ItemStack[this.getSizeInventory()];
|
||||
|
||||
for (int var3 = 0; var3 < var2.tagCount(); ++var3) {
|
||||
NBTTagCompound var4 = (NBTTagCompound) var2.getCompoundTagAt(var3);
|
||||
NBTTagCompound var4 = var2.getCompoundTagAt(var3);
|
||||
int var5 = var4.getByte("Slot") & 255;
|
||||
|
||||
if (var5 >= 0 && var5 < this.cargoItems.length) {
|
||||
@@ -661,7 +661,7 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
double var6 = var2 * var2 + var4 * var4;
|
||||
|
||||
if (var6 >= 9.999999747378752E-5D) {
|
||||
var6 = (double) MathHelper.sqrt_double(var6);
|
||||
var6 = MathHelper.sqrt_double(var6);
|
||||
var2 /= var6;
|
||||
var4 /= var6;
|
||||
double var8 = 1.0D / var6;
|
||||
@@ -674,8 +674,8 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
var4 *= var8;
|
||||
var2 *= 0.10000000149011612D;
|
||||
var4 *= 0.10000000149011612D;
|
||||
var2 *= (double) (1.0F - this.entityCollisionReduction);
|
||||
var4 *= (double) (1.0F - this.entityCollisionReduction);
|
||||
var2 *= 1.0F - this.entityCollisionReduction;
|
||||
var4 *= 1.0F - this.entityCollisionReduction;
|
||||
var2 *= 0.5D;
|
||||
var4 *= 0.5D;
|
||||
|
||||
@@ -684,9 +684,9 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
double var12 = par1Entity.posZ - this.posZ;
|
||||
Vec3 var14 = Vec3.createVectorHelper(var10, 0.0D, var12).normalize();
|
||||
Vec3 var15 = Vec3.createVectorHelper(
|
||||
(double) MathHelper.cos(this.rotationYaw * (float) Math.PI / 180.0F),
|
||||
MathHelper.cos(this.rotationYaw * (float) Math.PI / 180.0F),
|
||||
0.0D,
|
||||
(double) MathHelper.sin(this.rotationYaw * (float) Math.PI / 180.0F))
|
||||
MathHelper.sin(this.rotationYaw * (float) Math.PI / 180.0F))
|
||||
.normalize();
|
||||
double var16 = Math.abs(var14.dotProduct(var15));
|
||||
|
||||
@@ -854,7 +854,7 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
|
||||
if (var2 != null && var2.getItem() == Items.coal) {
|
||||
if (--var2.stackSize == 0) {
|
||||
player.inventory.setInventorySlotContents(player.inventory.currentItem, (ItemStack) null);
|
||||
player.inventory.setInventorySlotContents(player.inventory.currentItem, null);
|
||||
}
|
||||
|
||||
this.fuel += 3600;
|
||||
@@ -877,8 +877,8 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
this.minecartX = par1;
|
||||
this.minecartY = par3;
|
||||
this.minecartZ = par5;
|
||||
this.minecartYaw = (double) par7;
|
||||
this.minecartPitch = (double) par8;
|
||||
this.minecartYaw = par7;
|
||||
this.minecartPitch = par8;
|
||||
this.turnProgress = par9 + 2;
|
||||
this.motionX = this.velocityX;
|
||||
this.motionY = this.velocityY;
|
||||
|
||||
@@ -121,13 +121,13 @@ public abstract class SlimeBase extends EntityLiving implements IMob {
|
||||
|
||||
if (this.isPotionActive(Potion.jump)) {
|
||||
this.motionY +=
|
||||
(double) ((float) (this.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1F);
|
||||
(float) (this.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1F;
|
||||
}
|
||||
|
||||
if (this.isSprinting()) {
|
||||
float f = this.rotationYaw * 0.017453292F;
|
||||
this.motionX -= (double) (MathHelper.sin(f) * 0.2F);
|
||||
this.motionZ += (double) (MathHelper.cos(f) * 0.2F);
|
||||
this.motionX -= MathHelper.sin(f) * 0.2F;
|
||||
this.motionZ += MathHelper.cos(f) * 0.2F;
|
||||
}
|
||||
|
||||
if (!(this instanceof IBossDisplayData)
|
||||
|
||||
@@ -18,7 +18,7 @@ public class OreberryBushGen extends WorldGenerator {
|
||||
meta,
|
||||
chance,
|
||||
Blocks.stone,
|
||||
(Block) Blocks.grass,
|
||||
Blocks.grass,
|
||||
Blocks.dirt,
|
||||
Blocks.water,
|
||||
Blocks.sand,
|
||||
|
||||
@@ -27,7 +27,7 @@ public class SurfaceOreGen extends WorldGenerator {
|
||||
number,
|
||||
changeSize,
|
||||
Blocks.stone,
|
||||
(Block) Blocks.grass,
|
||||
Blocks.grass,
|
||||
Blocks.dirt,
|
||||
Blocks.water,
|
||||
Blocks.sand,
|
||||
@@ -76,12 +76,12 @@ public class SurfaceOreGen extends WorldGenerator {
|
||||
float f = random.nextFloat() * (float) Math.PI;
|
||||
int blockNumber = numberOfBlocks;
|
||||
if (alterSize) blockNumber = numberOfBlocks * 2 / 5 + random.nextInt(numberOfBlocks * 3 / 5);
|
||||
double d0 = (double) ((float) (startX + 8) + MathHelper.sin(f) * (float) blockNumber / 8.0F);
|
||||
double d1 = (double) ((float) (startX + 8) - MathHelper.sin(f) * (float) blockNumber / 8.0F);
|
||||
double d2 = (double) ((float) (startZ + 8) + MathHelper.cos(f) * (float) blockNumber / 8.0F);
|
||||
double d3 = (double) ((float) (startZ + 8) - MathHelper.cos(f) * (float) blockNumber / 8.0F);
|
||||
double d4 = (double) (startY + random.nextInt(3) - 2);
|
||||
double d5 = (double) (startY + random.nextInt(3) - 2);
|
||||
double d0 = (float) (startX + 8) + MathHelper.sin(f) * (float) blockNumber / 8.0F;
|
||||
double d1 = (float) (startX + 8) - MathHelper.sin(f) * (float) blockNumber / 8.0F;
|
||||
double d2 = (float) (startZ + 8) + MathHelper.cos(f) * (float) blockNumber / 8.0F;
|
||||
double d3 = (float) (startZ + 8) - MathHelper.cos(f) * (float) blockNumber / 8.0F;
|
||||
double d4 = startY + random.nextInt(3) - 2;
|
||||
double d5 = startY + random.nextInt(3) - 2;
|
||||
|
||||
for (int l = 0; l <= blockNumber; ++l) {
|
||||
double d6 = d0 + (d1 - d0) * (double) l / (double) blockNumber;
|
||||
|
||||
@@ -83,9 +83,9 @@ public class BarricadeItem extends ItemBlock {
|
||||
|
||||
if (placeBlockAt(stack, player, world, x, y, z, side, hitX, hitY, hitZ, metadata)) {
|
||||
world.playSoundEffect(
|
||||
(double) ((float) x + 0.5F),
|
||||
(double) ((float) y + 0.5F),
|
||||
(double) ((float) z + 0.5F),
|
||||
(float) x + 0.5F,
|
||||
(float) y + 0.5F,
|
||||
(float) z + 0.5F,
|
||||
block.stepSound.soundName,
|
||||
(block.stepSound.getVolume() + 1.0F) / 2.0F,
|
||||
block.stepSound.getPitch() * 0.8F);
|
||||
|
||||
@@ -49,7 +49,7 @@ public class OreberryBushItem extends MultiItemBlock {
|
||||
Block block = world.getBlock(x, y, z);
|
||||
|
||||
if (block != null
|
||||
&& block.canSustainPlant(world, x, y, z, ForgeDirection.UP, (IPlantable) TinkerWorld.oreBerry)
|
||||
&& block.canSustainPlant(world, x, y, z, ForgeDirection.UP, TinkerWorld.oreBerry)
|
||||
&& WorldHelper.isAirBlock(world, x, y + 1, z)) {
|
||||
world.setBlock(x, y + 1, z, blockB, stack.getItemDamage() % 4, 3);
|
||||
if (!player.capabilities.isCreativeMode) stack.stackSize--;
|
||||
|
||||
@@ -66,7 +66,7 @@ public class OreberryBushSecondItem extends MultiItemBlock {
|
||||
Block block = world.getBlock(x, y, z);
|
||||
|
||||
if (block != null
|
||||
&& block.canSustainPlant(world, x, y, z, ForgeDirection.UP, (IPlantable) TinkerWorld.oreBerrySecond)
|
||||
&& block.canSustainPlant(world, x, y, z, ForgeDirection.UP, TinkerWorld.oreBerrySecond)
|
||||
&& WorldHelper.isAirBlock(world, x, y + 1, z)) {
|
||||
world.setBlock(x, y + 1, z, blockB, stack.getItemDamage() % 4, 3);
|
||||
if (!player.capabilities.isCreativeMode) stack.stackSize--;
|
||||
|
||||
@@ -45,9 +45,9 @@ public class WoolSlab1Item extends MultiItemBlock {
|
||||
if ((side == 1 && flag || side == 0 && !flag) && b == this.block && trueMeta == stack.getItemDamage()) {
|
||||
if (world.setBlock(x, y, z, Blocks.wool, trueMeta, 3)) {
|
||||
world.playSoundEffect(
|
||||
(double) ((float) x + 0.5F),
|
||||
(double) ((float) y + 0.5F),
|
||||
(double) ((float) z + 0.5F),
|
||||
(float) x + 0.5F,
|
||||
(float) y + 0.5F,
|
||||
(float) z + 0.5F,
|
||||
this.block.stepSound.soundName,
|
||||
(this.block.stepSound.getVolume() + 1.0F) / 2.0F,
|
||||
this.block.stepSound.getPitch() * 0.8F);
|
||||
|
||||
@@ -50,9 +50,9 @@ public class WoolSlab2Item extends MultiItemBlock {
|
||||
if ((side == 1 && flag || side == 0 && !flag) && block == this.block && trueMeta == stack.getItemDamage()) {
|
||||
if (world.setBlock(x, y, z, Blocks.wool, trueMeta + 8, 3)) {
|
||||
world.playSoundEffect(
|
||||
(double) ((float) x + 0.5F),
|
||||
(double) ((float) y + 0.5F),
|
||||
(double) ((float) z + 0.5F),
|
||||
(float) x + 0.5F,
|
||||
(float) y + 0.5F,
|
||||
(float) z + 0.5F,
|
||||
this.block.stepSound.soundName,
|
||||
(this.block.stepSound.getVolume() + 1.0F) / 2.0F,
|
||||
this.block.stepSound.getPitch() * 0.8F);
|
||||
|
||||
Reference in new issue
Block a user