mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Don't apply player movement cheat detection in singleplayer
This commit is contained in:
parent
8ecfd88d92
commit
491287c0af
3 changed files with 55 additions and 46 deletions
|
@ -4323,7 +4323,8 @@ void Server::reportPrivsModified(const std::string &name)
|
|||
return;
|
||||
SendPlayerPrivileges(player->peer_id);
|
||||
player->getPlayerSAO()->updatePrivileges(
|
||||
getPlayerEffectivePrivs(name));
|
||||
getPlayerEffectivePrivs(name),
|
||||
isSingleplayer());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4527,7 +4528,8 @@ PlayerSAO* Server::emergePlayer(const char *name, u16 peer_id)
|
|||
Create a new player active object
|
||||
*/
|
||||
PlayerSAO *playersao = new PlayerSAO(m_env, player, peer_id,
|
||||
getPlayerEffectivePrivs(player->getName()));
|
||||
getPlayerEffectivePrivs(player->getName()),
|
||||
isSingleplayer());
|
||||
|
||||
/* Add object to environment */
|
||||
m_env->addActiveObject(playersao);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue