summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-03-04 15:12:15 +0100
committerGitHub <noreply@github.com>2020-03-04 15:12:15 +0100
commitaba329544f215b1d4d7f0325de68e9bd5f93a666 (patch)
tree21d985cb606df06b197d04f435e1d53c970ea603
parentPlay correct sound when entities are hit by arrows (#4481) (diff)
downloadcuberite-aba329544f215b1d4d7f0325de68e9bd5f93a666.tar
cuberite-aba329544f215b1d4d7f0325de68e9bd5f93a666.tar.gz
cuberite-aba329544f215b1d4d7f0325de68e9bd5f93a666.tar.bz2
cuberite-aba329544f215b1d4d7f0325de68e9bd5f93a666.tar.lz
cuberite-aba329544f215b1d4d7f0325de68e9bd5f93a666.tar.xz
cuberite-aba329544f215b1d4d7f0325de68e9bd5f93a666.tar.zst
cuberite-aba329544f215b1d4d7f0325de68e9bd5f93a666.zip
Diffstat (limited to '')
-rw-r--r--src/BlockEntities/BlockEntityWithItems.cpp14
-rw-r--r--src/BlockEntities/BlockEntityWithItems.h1
2 files changed, 0 insertions, 15 deletions
diff --git a/src/BlockEntities/BlockEntityWithItems.cpp b/src/BlockEntities/BlockEntityWithItems.cpp
index 1ec4f2068..fb21c0e51 100644
--- a/src/BlockEntities/BlockEntityWithItems.cpp
+++ b/src/BlockEntities/BlockEntityWithItems.cpp
@@ -26,20 +26,6 @@ cBlockEntityWithItems::cBlockEntityWithItems(
-void cBlockEntityWithItems::Destroy(void)
-{
- // Drop the contents as pickups:
- ASSERT(m_World != nullptr);
- cItems Pickups;
- m_Contents.CopyToItems(Pickups);
- m_Contents.Clear();
- m_World->SpawnItemPickups(Pickups, m_Pos.x + 0.5, m_Pos.y + 0.5, m_Pos.z + 0.5); // Spawn in centre of block
-}
-
-
-
-
-
void cBlockEntityWithItems::CopyFrom(const cBlockEntity & a_Src)
{
super::CopyFrom(a_Src);
diff --git a/src/BlockEntities/BlockEntityWithItems.h b/src/BlockEntities/BlockEntityWithItems.h
index 4782269dc..ffce3c4f7 100644
--- a/src/BlockEntities/BlockEntityWithItems.h
+++ b/src/BlockEntities/BlockEntityWithItems.h
@@ -44,7 +44,6 @@ public: // tolua_export
);
// cBlockEntity overrides:
- virtual void Destroy(void) override;
virtual void CopyFrom(const cBlockEntity & a_Src) override;
// tolua_begin