mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Initial NodeMetaRef stuff
This commit is contained in:
parent
34bd1b3032
commit
0f2b932e92
3 changed files with 177 additions and 17 deletions
|
@ -3190,12 +3190,10 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||
NodeMetadata *meta = m_env->getMap().getNodeMetadata(p);
|
||||
if(!meta)
|
||||
return;
|
||||
if(meta->typeId() != LEGN(m_nodedef, "CONTENT_SIGN_WALL"))
|
||||
return;
|
||||
SignNodeMetadata *signmeta = (SignNodeMetadata*)meta;
|
||||
signmeta->setText(text);
|
||||
|
||||
meta->setText(text);
|
||||
|
||||
actionstream<<player->getName()<<" writes \""<<text<<"\" to sign "
|
||||
actionstream<<player->getName()<<" writes \""<<text<<"\" to sign"
|
||||
<<" at "<<PP(p)<<std::endl;
|
||||
|
||||
v3s16 blockpos = getNodeBlockPos(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue