Added falling block entities. Sand and gravel now properly fall down
Implemented the PACKET_SPAWN_OBJECT packet Made some things use BLOCKTYPE instead of char Android: Requests WebAdmin port when pressing the configure button git-svn-id: http://mc-server.googlecode.com/svn/trunk@915 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -48,7 +48,7 @@ void cFireSimulator::Simulate( float a_Dt )
|
||||
}
|
||||
|
||||
|
||||
bool cFireSimulator::IsAllowedBlock( char a_BlockID )
|
||||
bool cFireSimulator::IsAllowedBlock( BLOCKTYPE a_BlockID )
|
||||
{
|
||||
return a_BlockID == E_BLOCK_FIRE
|
||||
|| IsBlockLava(a_BlockID);
|
||||
@@ -78,12 +78,12 @@ void cFireSimulator::_AddBlock(int a_X, int a_Y, int a_Z)
|
||||
|
||||
}
|
||||
|
||||
bool cFireSimulator::IsForeverBurnable( char a_BlockID )
|
||||
bool cFireSimulator::IsForeverBurnable( BLOCKTYPE a_BlockID )
|
||||
{
|
||||
return a_BlockID == E_BLOCK_BLOODSTONE;
|
||||
}
|
||||
|
||||
bool cFireSimulator::IsBurnable( char a_BlockID )
|
||||
bool cFireSimulator::IsBurnable( BLOCKTYPE a_BlockID )
|
||||
{
|
||||
return a_BlockID == E_BLOCK_PLANKS
|
||||
|| a_BlockID == E_BLOCK_LEAVES
|
||||
@@ -95,7 +95,7 @@ bool cFireSimulator::IsBurnable( char a_BlockID )
|
||||
|| a_BlockID == E_BLOCK_VINES;
|
||||
}
|
||||
|
||||
bool cFireSimulator::FiresForever( char a_BlockID )
|
||||
bool cFireSimulator::FiresForever( BLOCKTYPE a_BlockID )
|
||||
{
|
||||
return a_BlockID != E_BLOCK_FIRE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user