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/BlockHandler.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/Blocks/BlockHandler.h') diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h index 772536003..ecf895d66 100644 --- a/src/Blocks/BlockHandler.h +++ b/src/Blocks/BlockHandler.h @@ -166,10 +166,6 @@ public: @param a_Meta Meta value of the block currently at a_Pos */ virtual bool DoesIgnoreBuildCollision(cChunkInterface & ChunkInterface, const Vector3i a_Pos, cPlayer & a_Player, NIBBLETYPE a_Meta) const; - /** Returns if this block drops if it gets destroyed by an unsuitable situation. - Default: true */ - virtual bool DoesDropOnUnsuitable(void) const; - /** Tests if a_RelPosition is inside the block, where a_RelPosition is relative to the origin of the block. Coords in a_RelPosition are guaranteed to be in the [0..1] range. */ virtual bool IsInsideBlock(const Vector3d a_RelPosition, const NIBBLETYPE a_BlockMeta) const; -- cgit v1.2.3