1
0

Fixed PolishedGranite et al crafting recipes.

Fixes #1774. Ref.: #1859
This commit is contained in:
Mattes D
2015-04-16 20:59:57 +02:00
parent 1d8a22cb7b
commit ffe7dae4fc
4 changed files with 7 additions and 6 deletions

View File

@@ -336,7 +336,7 @@ bool cItemHandler::OnPlayerPlace(
if (
BlockHandler(ClickedBlock)->DoesIgnoreBuildCollision() ||
BlockHandler(ClickedBlock)->DoesIgnoreBuildCollision(&a_Player, ClickedBlockMeta)
)
)
{
cChunkInterface ChunkInterface(a_World.GetChunkMap());
BlockHandler(ClickedBlock)->OnDestroyedByPlayer(ChunkInterface, a_World, &a_Player, a_BlockX, a_BlockY, a_BlockZ);
@@ -757,7 +757,7 @@ bool cItemHandler::GetPlacementBlockTypeMeta(
return false;
}
cBlockHandler * BlockH = BlockHandler((BLOCKTYPE)m_ItemType);
cBlockHandler * BlockH = BlockHandler(static_cast<BLOCKTYPE>(m_ItemType));
cChunkInterface ChunkInterface(a_World->GetChunkMap());
return BlockH->GetPlacementBlockTypeMeta(
ChunkInterface, a_Player,