From de76503d5c87fd7782b0aa3bbda9bdd997ad7fa8 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 14 Mar 2021 00:30:40 +0000 Subject: 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. --- src/Blocks/BlockVine.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/Blocks/BlockVine.h') diff --git a/src/Blocks/BlockVine.h b/src/Blocks/BlockVine.h index 8d42137d4..80498ee63 100644 --- a/src/Blocks/BlockVine.h +++ b/src/Blocks/BlockVine.h @@ -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, -- cgit v1.2.3