summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-31 14:10:17 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-31 14:10:17 +0200
commit64f8549604fab025155b0fe84759d829bb4fcaea (patch)
treecec4f31fc33860c690626a041cd6ebca3a76ad09 /source
parentGot rid of sPluginManagerState (diff)
downloadcuberite-64f8549604fab025155b0fe84759d829bb4fcaea.tar
cuberite-64f8549604fab025155b0fe84759d829bb4fcaea.tar.gz
cuberite-64f8549604fab025155b0fe84759d829bb4fcaea.tar.bz2
cuberite-64f8549604fab025155b0fe84759d829bb4fcaea.tar.lz
cuberite-64f8549604fab025155b0fe84759d829bb4fcaea.tar.xz
cuberite-64f8549604fab025155b0fe84759d829bb4fcaea.tar.zst
cuberite-64f8549604fab025155b0fe84759d829bb4fcaea.zip
Diffstat (limited to 'source')
-rw-r--r--source/cFluidSimulator.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/cFluidSimulator.cpp b/source/cFluidSimulator.cpp
index 68a6af599..c2df9b1f2 100644
--- a/source/cFluidSimulator.cpp
+++ b/source/cFluidSimulator.cpp
@@ -350,10 +350,12 @@ void cFluidSimulator::Simulate( float a_Dt )
cPickup* Pickup = new cPickup( pos.x * 32 + 16, (pos.y-1) * 32 + 16, pos.z * 32 + 16, cItem( (ENUM_ITEM_ID)DownID, 1, m_World->GetBlockMeta( pos.x, pos.y-1, pos.z ) ) );
Pickup->Initialize( m_World );
}
-
- m_World->FastSetBlock( pos.x, pos.y-1, pos.z, m_FluidBlock, 8 ); // falling
- AddBlock( pos.x, pos.y-1, pos.z );
- ApplyUniqueToNearest(pos - Vector3i(0, 1, 0));
+ if( pos.y > 0 )
+ {
+ m_World->FastSetBlock( pos.x, pos.y-1, pos.z, m_FluidBlock, 8 ); // falling
+ AddBlock( pos.x, pos.y-1, pos.z );
+ ApplyUniqueToNearest(pos - Vector3i(0, 1, 0));
+ }
}
if(IsSolidBlock(DownID)||( BlockID == m_StationaryFluidBlock)) // Not falling
{