diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-30 15:23:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 15:23:46 +0200 |
commit | 9b97d63f8f939dbc431cc2dcd9eddf959f86603a (patch) | |
tree | 98aada7aa4e7fc57e0fb0bf9a1bc84e996f483b1 /src/Blocks/BlockBed.cpp | |
parent | Fix: GetPhysicalRamUsage on FreeBSD (UNIX) - webadmin display (#5213) (diff) | |
download | cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar.gz cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar.bz2 cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar.lz cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar.xz cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar.zst cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.zip |
Diffstat (limited to 'src/Blocks/BlockBed.cpp')
-rw-r--r-- | src/Blocks/BlockBed.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Blocks/BlockBed.cpp b/src/Blocks/BlockBed.cpp index 68f45b518..ef4359416 100644 --- a/src/Blocks/BlockBed.cpp +++ b/src/Blocks/BlockBed.cpp @@ -163,6 +163,7 @@ void cBlockBedHandler::OnPlacedByPlayer(cChunkInterface & a_ChunkInterface, cWor a_Player.GetWorld()->DoWithBlockEntityAt(a_BlockChange.GetAbsolutePos(), [&a_Player](cBlockEntity & a_BlockEntity) { ASSERT(a_BlockEntity.GetBlockType() == E_BLOCK_BED); + static_cast<cBedEntity &>(a_BlockEntity).SetColor(a_Player.GetEquippedItem().m_ItemDamage); return false; }); |