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); super(Material.rock);
setBlockUnbreakable(); setBlockUnbreakable();
setResistance(6000000.0F); setResistance(6000000.0F);
setStepSound(soundTypeStone);
// TODO: set proper sound
//setStepSound(soundStoneFootstep);
disableStats(); disableStats();
setTickRandomly(true); setTickRandomly(true);

View file

@ -42,7 +42,7 @@ public class RecursiveBlueprintBuilder {
public BptBuilderBase nextBuilder() { public BptBuilderBase nextBuilder() {
if (!returnedThis) { if (!returnedThis) {
blueprint.adjustToWorld(world, x, y, x, dir); blueprint.adjustToWorld(world, x, y, z, dir);
returnedThis = true; 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) { private WeakReference<EntityPlayer> createNewPlayer(WorldServer world, int x, int y, int z) {
EntityPlayer player = FakePlayerFactory.get(world, BuildCraftCore.gameProfile); EntityPlayer player = FakePlayerFactory.get(world, BuildCraftCore.gameProfile);
player.posX = x;
player.posY = y; player.posY = y;
player.posZ = z; player.posZ = z;
return new WeakReference<EntityPlayer>(player); return new WeakReference<EntityPlayer>(player);

View file

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

View file

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

View file

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