Changes
This commit is contained in:
parent
ca6bcacdb9
commit
68668d7a6e
@ -124,8 +124,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Wash away anything that was there prior to placing:
|
// Wash away anything that was there prior to placing:
|
||||||
bool CanWashAway = cFluidSimulator::CanWashAway(CurrentBlock);
|
if (cFluidSimulator::CanWashAway(CurrentBlock))
|
||||||
if (CanWashAway)
|
|
||||||
{
|
{
|
||||||
cBlockHandler * Handler = BlockHandler(CurrentBlock);
|
cBlockHandler * Handler = BlockHandler(CurrentBlock);
|
||||||
if (Handler->DoesDropOnUnsuitable())
|
if (Handler->DoesDropOnUnsuitable())
|
||||||
@ -188,9 +187,9 @@ public:
|
|||||||
a_BlockPos = Callbacks.m_Pos;
|
a_BlockPos = Callbacks.m_Pos;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool GetPlacementCoordsFromTrace(cWorld * a_World, cPlayer * a_Player, Vector3i & a_BlockPos, BLOCKTYPE & a_BlockType)
|
bool GetPlacementCoordsFromTrace(cWorld * a_World, cPlayer * a_Player, Vector3i & a_BlockPos, BLOCKTYPE & a_BlockType)
|
||||||
{
|
{
|
||||||
class cCallbacks :
|
class cCallbacks :
|
||||||
public cBlockTracer::cCallbacks
|
public cBlockTracer::cCallbacks
|
||||||
|
Loading…
Reference in New Issue
Block a user