1
0

Removed leftover CanBePlacedOnSide

This commit is contained in:
Tiger Wang 2013-09-15 12:20:13 +01:00
parent 411f0b5fa4
commit a8cb2bd90e
3 changed files with 0 additions and 19 deletions

View File

@ -404,15 +404,6 @@ bool cBlockHandler::DoesIgnoreBuildCollision(void)
bool cBlockHandler::CanBePlacedOnSide(void)
{
return true;
}
bool cBlockHandler::DoesDropOnUnsuitable(void)
{
return true;

View File

@ -96,9 +96,6 @@ public:
For example blocks placed "on" snow will be placed at the same position. So: Snow ignores Build collision
*/
virtual bool DoesIgnoreBuildCollision(void);
/// Indicates this block can be placed on the side of other blocks. Default: true
virtual bool CanBePlacedOnSide(void);
/// Does this block drop if it gets destroyed by an unsuitable situation? Default: true
virtual bool DoesDropOnUnsuitable(void);

View File

@ -929,13 +929,6 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, c
cBlockHandler * NewBlock = BlockHandler(BlockType);
if ((a_BlockFace != BLOCK_FACE_TOP) && !NewBlock->CanBePlacedOnSide())
{
// Cannot be placed on the side of an other block
World->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player);
return;
}
if (cRoot::Get()->GetPluginManager()->CallHookPlayerPlacingBlock(*m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, BlockType, BlockMeta))
{
// A plugin doesn't agree with placing the block, revert the block on the client: