diff options
author | mjagdis <mjagdis@eris-associates.co.uk> | 2024-06-30 20:09:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-30 20:09:42 +0200 |
commit | b7de59de89994f026336e690e9ed7449f89836b8 (patch) | |
tree | 4aad3d70c8e76a8a2b20a3eb88471a1d609134fd /src/Items/ItemBanner.h | |
parent | Send metadata for item frames (#5568) (diff) | |
download | cuberite-b7de59de89994f026336e690e9ed7449f89836b8.tar cuberite-b7de59de89994f026336e690e9ed7449f89836b8.tar.gz cuberite-b7de59de89994f026336e690e9ed7449f89836b8.tar.bz2 cuberite-b7de59de89994f026336e690e9ed7449f89836b8.tar.lz cuberite-b7de59de89994f026336e690e9ed7449f89836b8.tar.xz cuberite-b7de59de89994f026336e690e9ed7449f89836b8.tar.zst cuberite-b7de59de89994f026336e690e9ed7449f89836b8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemBanner.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Items/ItemBanner.h b/src/Items/ItemBanner.h index a404af336..551c41429 100644 --- a/src/Items/ItemBanner.h +++ b/src/Items/ItemBanner.h @@ -40,7 +40,9 @@ private: { ASSERT((a_BlockEntity.GetBlockType() == E_BLOCK_STANDING_BANNER) || (a_BlockEntity.GetBlockType() == E_BLOCK_WALL_BANNER)); - static_cast<cBannerEntity &>(a_BlockEntity).SetBaseColor(static_cast<NIBBLETYPE>(a_HeldItem.m_ItemDamage)); + cBannerEntity & BannerEntity = static_cast<cBannerEntity &>(a_BlockEntity); + BannerEntity.SetBaseColor(static_cast<NIBBLETYPE>(a_HeldItem.m_ItemDamage)); + BannerEntity.SetCustomName(a_HeldItem.m_CustomName); return false; }); |