diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-07 21:03:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-07 21:03:21 +0100 |
commit | ab62fc398818d717b54110b13e1b3af48e07b686 (patch) | |
tree | d76804f9c594695ac3b90a00687b5398158df1f5 /src/Blocks/BlockStandingBanner.h | |
parent | Added code to export definitions for a lua-language-server (#5475) (diff) | |
download | cuberite-ab62fc398818d717b54110b13e1b3af48e07b686.tar cuberite-ab62fc398818d717b54110b13e1b3af48e07b686.tar.gz cuberite-ab62fc398818d717b54110b13e1b3af48e07b686.tar.bz2 cuberite-ab62fc398818d717b54110b13e1b3af48e07b686.tar.lz cuberite-ab62fc398818d717b54110b13e1b3af48e07b686.tar.xz cuberite-ab62fc398818d717b54110b13e1b3af48e07b686.tar.zst cuberite-ab62fc398818d717b54110b13e1b3af48e07b686.zip |
Diffstat (limited to 'src/Blocks/BlockStandingBanner.h')
-rw-r--r-- | src/Blocks/BlockStandingBanner.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/Blocks/BlockStandingBanner.h b/src/Blocks/BlockStandingBanner.h index 391b7fde7..0cc7c28eb 100644 --- a/src/Blocks/BlockStandingBanner.h +++ b/src/Blocks/BlockStandingBanner.h @@ -5,15 +5,16 @@ #include "../BlockInfo.h" #include "BlockEntity.h" +#include "Mixins/SolidSurfaceUnderneath.h" class cBlockStandingBannerHandler final : - public cBlockEntityHandler + public cSolidSurfaceUnderneath<cBlockEntityHandler> { - using Super = cBlockEntityHandler; + using Super = cSolidSurfaceUnderneath<cBlockEntityHandler>; public: @@ -29,20 +30,6 @@ public: - virtual bool CanBeAt(const cChunk & a_Chunk, const Vector3i a_Position, const NIBBLETYPE a_Meta) const override - { - if (a_Position.y < 1) - { - return false; - } - - return cBlockInfo::IsSolid(a_Chunk.GetBlock(a_Position.addedY(-1))); - } - - - - - virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override { UNUSED(a_Meta); |