1
0

Prevent container item duplication (#4476)

This commit is contained in:
Mat 2020-03-04 16:12:15 +02:00 committed by GitHub
parent 1ab87be80c
commit aba329544f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 15 deletions

View File

@ -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);

View File

@ -44,7 +44,6 @@ public: // tolua_export
);
// cBlockEntity overrides:
virtual void Destroy(void) override;
virtual void CopyFrom(const cBlockEntity & a_Src) override;
// tolua_begin