mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Keep PlayerMetaRef via name not pointer
This commit is contained in:
parent
c8dc9c2b8d
commit
3778ed7466
3 changed files with 23 additions and 10 deletions
|
@ -1521,7 +1521,7 @@ int ObjectRef::l_get_meta(lua_State *L)
|
|||
if (playersao == nullptr)
|
||||
return 0;
|
||||
|
||||
PlayerMetaRef::create(L, &playersao->getMeta());
|
||||
PlayerMetaRef::create(L, &getServer(L)->getEnv(), playersao->getPlayer()->getName());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue