From 24efa6f8645c2f310997c212907fb4e591d0afec Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Thu, 22 Dec 2011 21:36:24 +0000 Subject: =?UTF-8?q?Digging=20leaves=20with=20shears=20now=20drops=20leaves?= =?UTF-8?q?=20Falling=20Sand=20now=20notifies=20water=20around=20Implement?= =?UTF-8?q?ed=20Function=20to=20get=20the=20relative=20chunk=20position=20?= =?UTF-8?q?in=20the=20total=20position=20(cChunk::PositionToWorldPosition)?= =?UTF-8?q?=20Pistons=20don=C2=B4t=20drop=20water=20and=20lava=20items=20a?= =?UTF-8?q?nymore=20when=20stopping=20water/lava=20implemented=20Getter=20?= =?UTF-8?q?for=20lava=20and=20water=20simulator=20IsBlockWater=20and=20IsB?= =?UTF-8?q?lockLava=20function=20in=20Defines.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://mc-server.googlecode.com/svn/trunk@97 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/cWorld.cpp') 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 ); -- cgit v1.2.3