From 1a60164848396e0078bd56659f8d43c1e58a03d8 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 23 Sep 2020 16:03:39 +0100 Subject: Small cleanup in Jukeboxes * Fixed creative players not tracking stats, and the code trying to "place" a record when they used one --- src/BlockEntities/JukeboxEntity.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/BlockEntities/JukeboxEntity.h') diff --git a/src/BlockEntities/JukeboxEntity.h b/src/BlockEntities/JukeboxEntity.h index 223861149..5af2012bd 100644 --- a/src/BlockEntities/JukeboxEntity.h +++ b/src/BlockEntities/JukeboxEntity.h @@ -37,7 +37,7 @@ public: // tolua_export bool EjectRecord(void); /** Is in the Jukebox a Record? */ - bool IsPlayingRecord(void); + bool IsPlayingRecord(void) const; static bool IsRecordItem(int a_Item) { @@ -48,6 +48,7 @@ public: // tolua_export // cBlockEntity overrides: virtual void Destroy(void) override; + virtual cItems ConvertToPickups() const override; virtual void CopyFrom(const cBlockEntity & a_Src) override; virtual bool UsedBy(cPlayer * a_Player) override; virtual void SendTo(cClientHandle &) override {} -- cgit v1.2.3