summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-22 22:36:24 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-22 22:36:24 +0100
commit24efa6f8645c2f310997c212907fb4e591d0afec (patch)
treeff6d43fb6a9af7838b0dc41908f895f71d9aef5c /source/cWorld.cpp
parentFixes: (diff)
downloadcuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar
cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar.gz
cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar.bz2
cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar.lz
cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar.xz
cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar.zst
cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index 65c35535b..b1a0d1813 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -255,10 +255,10 @@ cWorld::cWorld( const char* a_WorldName )
// Blocks that breaks when pushed by piston
g_BlockPistonBreakable[ E_BLOCK_AIR ] = true;
- g_BlockPistonBreakable[ E_BLOCK_STATIONARY_WATER ] = true;
- g_BlockPistonBreakable[ E_BLOCK_WATER ] = true;
- g_BlockPistonBreakable[ E_BLOCK_STATIONARY_LAVA ] = true;
- g_BlockPistonBreakable[ E_BLOCK_LAVA ] = true;
+ g_BlockPistonBreakable[ E_BLOCK_STATIONARY_WATER ] = false; //This gave pistons the ability to drop water :D
+ g_BlockPistonBreakable[ E_BLOCK_WATER ] = false;
+ g_BlockPistonBreakable[ E_BLOCK_STATIONARY_LAVA ] = false;
+ g_BlockPistonBreakable[ E_BLOCK_LAVA ] = false;
g_BlockPistonBreakable[ E_BLOCK_BED ] = true;
g_BlockPistonBreakable[ E_BLOCK_COBWEB ] = true;
g_BlockPistonBreakable[ E_BLOCK_TALL_GRASS ] = true;
@@ -709,7 +709,7 @@ bool cWorld::DigBlock( int a_X, int a_Y, int a_Z, cItem & a_PickupItem )
cChunk* DestChunk = GetChunk( ChunkX, ChunkY, ChunkZ );
if(DestChunk)
{
- DestChunk->SetBlock(PosX, PosY, PosZ, 0, 0 );
+ DestChunk->SetBlock(PosX, PosY, PosZ, E_BLOCK_AIR, 0 );
m_WaterSimulator->WakeUp( a_X, a_Y, a_Z );
m_LavaSimulator->WakeUp( a_X, a_Y, a_Z );