mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Light emission level for lightBlock copying from hand held item
This commit is contained in:
parent
21ba81d0a8
commit
b0e740f8b6
|
|
@ -2421,6 +2421,9 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures)
|
|||
// Ставим на позицию ног игрока только если клетка свободна
|
||||
if (level->isEmptyTile(curX, curY, curZ))
|
||||
{
|
||||
float emission = Tile::lightEmission[heldItemId];
|
||||
Tile::lightEmission[Tile::lightSourceBlock_Id] = emission;
|
||||
|
||||
level->setTileAndData(
|
||||
curX, curY, curZ,
|
||||
Tile::lightSourceBlock_Id, 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue