summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemBanner.h
diff options
context:
space:
mode:
authormjagdis <mjagdis@eris-associates.co.uk>2024-06-30 20:09:42 +0200
committerGitHub <noreply@github.com>2024-06-30 20:09:42 +0200
commitb7de59de89994f026336e690e9ed7449f89836b8 (patch)
tree4aad3d70c8e76a8a2b20a3eb88471a1d609134fd /src/Items/ItemBanner.h
parentSend metadata for item frames (#5568) (diff)
downloadcuberite-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.h4
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;
});