fix two minor bugs and restore block step sounds

This commit is contained in:
asiekierka 2014-12-14 16:05:23 +01:00
parent 9883e790c4
commit 516c680b91
6 changed files with 6 additions and 10 deletions

View file

@ -53,9 +53,7 @@ public class BlockSpring extends Block {
super(Material.rock);
setBlockUnbreakable();
setResistance(6000000.0F);
// TODO: set proper sound
//setStepSound(soundStoneFootstep);
setStepSound(soundTypeStone);
disableStats();
setTickRandomly(true);

View file

@ -42,7 +42,7 @@ public class RecursiveBlueprintBuilder {
public BptBuilderBase nextBuilder() {
if (!returnedThis) {
blueprint.adjustToWorld(world, x, y, x, dir);
blueprint.adjustToWorld(world, x, y, z, dir);
returnedThis = true;

View file

@ -149,6 +149,7 @@ public class CoreProxy implements ICoreProxy {
private WeakReference<EntityPlayer> createNewPlayer(WorldServer world, int x, int y, int z) {
EntityPlayer player = FakePlayerFactory.get(world, BuildCraftCore.gameProfile);
player.posX = x;
player.posY = y;
player.posZ = z;
return new WeakReference<EntityPlayer>(player);

View file

@ -27,7 +27,7 @@ public class WorldPropertyIsLeaf extends WorldProperty {
if (block == null) {
return false;
} else {
ItemStack stack = new ItemStack(block);
ItemStack stack = new ItemStack(block, 1, meta);
if (stack.getItem() != null) {
for (int id : OreDictionary.getOreIDs(stack)) {

View file

@ -35,9 +35,7 @@ public class BlockMiningWell extends BlockBuildCraft {
setHardness(5F);
setResistance(10F);
// TODO: set proper sound
//setStepSound(soundStoneFootstep);
setStepSound(soundTypeStone);
}
@Override

View file

@ -43,8 +43,7 @@ public class BlockQuarry extends BlockBuildCraft {
setHardness(10F);
setResistance(10F);
// TODO: set proper sound
//setStepSound(soundAnvilFootstep);
setStepSound(soundTypeAnvil);
}
@Override