diff options
Diffstat (limited to 'src/Blocks/BlockDaylightSensor.h')
-rw-r--r-- | src/Blocks/BlockDaylightSensor.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/Blocks/BlockDaylightSensor.h b/src/Blocks/BlockDaylightSensor.h index 792e7d042..42de03683 100644 --- a/src/Blocks/BlockDaylightSensor.h +++ b/src/Blocks/BlockDaylightSensor.h @@ -7,17 +7,14 @@ -class cBlockDaylightSensorHandler final : - public cBlockHandler +class cBlockDaylightSensorHandler final : public cBlockHandler { using Super = cBlockHandler; -public: - + public: using Super::Super; -private: - + private: virtual bool OnUse( cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, @@ -43,12 +40,9 @@ private: virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem * const a_Tool) const override { // Always drop the regular daylight sensor: - return { E_BLOCK_DAYLIGHT_SENSOR }; + return {E_BLOCK_DAYLIGHT_SENSOR}; } - virtual bool IsUseable(void) const override - { - return true; - } + virtual bool IsUseable(void) const override { return true; } }; |