Skip to content

Commit

Permalink
Correct Falling Block
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirad committed Nov 15, 2012
1 parent faa3058 commit 6db7baa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Chraft/World/Blocks/BlockGravel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected void StartPhysics(StructBlock block)
var world = block.World;
Remove(block);
FallingGravel fgBlock = new FallingGravel(world, new AbsWorldCoords(block.Coords.WorldX + 0.5, block.Coords.WorldY + 0.5, block.Coords.WorldZ + 0.5));
fgBlock.Start();
fgBlock.Start((int)Type);
world.PhysicsBlocks.TryAdd(fgBlock.EntityId, fgBlock);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Chraft/World/Blocks/BlockSand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected void StartPhysics(StructBlock block)
{
Remove(block);
var fsBlock = new FallingSand(block.World, new AbsWorldCoords(block.Coords.WorldX + 0.5, block.Coords.WorldY + 0.5, block.Coords.WorldZ + 0.5));
fsBlock.Start();
fsBlock.Start((int)Type);
block.World.PhysicsBlocks.TryAdd(fsBlock.EntityId, fsBlock);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Chraft/World/Blocks/Physics/FallingSand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public FallingSand(WorldManager world, AbsWorldCoords pos) : base(world, pos)
{
Type = Net.Packets.AddObjectVehiclePacket.ObjectType.FallingSand;
BlockId = (byte) BlockData.Blocks.Sand;
Velocity = new Vector3(0, -0.4D, 0);
Velocity = new Vector3(0, -0.4D, 0);//TODO Corect Falling speed ?
}

public override void Simulate()
Expand Down

0 comments on commit 6db7baa

Please sign in to comment.