diff options
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/JukeboxEntity.cpp | 13 | ||||
-rw-r--r-- | src/BlockEntities/JukeboxEntity.h | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/BlockEntities/JukeboxEntity.cpp b/src/BlockEntities/JukeboxEntity.cpp index 11d50b19a..b99d9d39c 100644 --- a/src/BlockEntities/JukeboxEntity.cpp +++ b/src/BlockEntities/JukeboxEntity.cpp @@ -24,19 +24,6 @@ cJukeboxEntity::cJukeboxEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Ve -cJukeboxEntity::~cJukeboxEntity() -{ - if (m_World && IsPlayingRecord()) - { - // Stop playing music when destroyed by any means - m_World->BroadcastSoundParticleEffect(EffectID::SFX_RANDOM_PLAY_MUSIC_DISC, GetPos(), 0); - } -} - - - - - void cJukeboxEntity::Destroy(void) { ASSERT(m_World != nullptr); diff --git a/src/BlockEntities/JukeboxEntity.h b/src/BlockEntities/JukeboxEntity.h index 5af2012bd..6e8443a7e 100644 --- a/src/BlockEntities/JukeboxEntity.h +++ b/src/BlockEntities/JukeboxEntity.h @@ -22,7 +22,6 @@ public: // tolua_export BLOCKENTITY_PROTODEF(cJukeboxEntity) cJukeboxEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld * a_World); - virtual ~cJukeboxEntity() override; // tolua_begin |