Skip to content

Commit

Permalink
Update src/lua/functions/creatures/player/player_functions.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo Dantas <[email protected]>
  • Loading branch information
Luan Luciano and dudantas authored Jan 17, 2024
1 parent 89ba528 commit e0aa364
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lua/functions/creatures/player/player_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4157,9 +4157,9 @@ int PlayerFunctions::luaPlayerKV(lua_State* L) {
return 1;
}

int PlayerFunctions::luaPlayerTakeScreenshot(lua_State* L) {
// player:takeScreenshot(screenshotType)
std::shared_ptr<Player> player = getUserdataShared<Player>(L, 1);
int PlayerFunctions::luaSendPlayerTakeScreenshot(lua_State* L) {
// player:sendTakeScreenshot(screenshotType)
const auto& player = getUserdataShared<Player>(L, 1);
if (!player) {
lua_pushnil(L);
return 1;
Expand Down

0 comments on commit e0aa364

Please sign in to comment.