Remove DoesDropOnUnsuitable
This is only overridden false in Vines and Snow. It is called when a CanBeAt check fails, to determine whether DropBlockAsPickups is called. However, Vines and Snow already drop nothing without the right tool, so this function is superfluous.
This commit is contained in:
@@ -180,10 +180,6 @@ private:
|
||||
if ((Common == 0) && !HasTop)
|
||||
{
|
||||
// The vine just lost all its support, destroy the block:
|
||||
if (DoesDropOnUnsuitable())
|
||||
{
|
||||
a_ChunkInterface.DropBlockAsPickups(a_Chunk.RelativeToAbsolute(a_RelPos));
|
||||
}
|
||||
a_Chunk.SetBlock(a_RelPos, E_BLOCK_AIR, 0);
|
||||
return false;
|
||||
}
|
||||
@@ -207,15 +203,6 @@ private:
|
||||
|
||||
|
||||
|
||||
virtual bool DoesDropOnUnsuitable(void) const override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
virtual void OnUpdate(
|
||||
cChunkInterface & a_ChunkInterface,
|
||||
cWorldInterface & a_WorldInterface,
|
||||
|
||||
Reference in New Issue
Block a user