summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockHandler.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-03-14 01:30:40 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2021-03-15 03:44:39 +0100
commitde76503d5c87fd7782b0aa3bbda9bdd997ad7fa8 (patch)
tree0f58be6c2883a9c0e258cc410ad04885b8164451 /src/Blocks/BlockHandler.cpp
parentProperly deprecate more XYZ parameter'd functions (#5147) (diff)
downloadcuberite-de76503d5c87fd7782b0aa3bbda9bdd997ad7fa8.tar
cuberite-de76503d5c87fd7782b0aa3bbda9bdd997ad7fa8.tar.gz
cuberite-de76503d5c87fd7782b0aa3bbda9bdd997ad7fa8.tar.bz2
cuberite-de76503d5c87fd7782b0aa3bbda9bdd997ad7fa8.tar.lz
cuberite-de76503d5c87fd7782b0aa3bbda9bdd997ad7fa8.tar.xz
cuberite-de76503d5c87fd7782b0aa3bbda9bdd997ad7fa8.tar.zst
cuberite-de76503d5c87fd7782b0aa3bbda9bdd997ad7fa8.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockHandler.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/Blocks/BlockHandler.cpp b/src/Blocks/BlockHandler.cpp
index 829905221..316906907 100644
--- a/src/Blocks/BlockHandler.cpp
+++ b/src/Blocks/BlockHandler.cpp
@@ -494,14 +494,7 @@ void cBlockHandler::OnNeighborChanged(cChunkInterface & a_ChunkInterface, Vector
return;
}
- if (DoesDropOnUnsuitable())
- {
- a_ChunkInterface.DropBlockAsPickups(a_BlockPos);
- }
- else
- {
- a_ChunkInterface.SetBlock(a_BlockPos, E_BLOCK_AIR, 0);
- }
+ a_ChunkInterface.DropBlockAsPickups(a_BlockPos);
}
@@ -571,15 +564,6 @@ bool cBlockHandler::DoesIgnoreBuildCollision(cChunkInterface & a_ChunkInterface,
-bool cBlockHandler::DoesDropOnUnsuitable(void) const
-{
- return true;
-}
-
-
-
-
-
bool cBlockHandler::IsInsideBlock(const Vector3d a_RelPosition, const NIBBLETYPE a_BlockMeta) const
{
// Default functionality: Test the height, since we assume full voxels with varying height