Skip to content

Commit

Permalink
Changed player:getMaxMana() to use lua_pushinteger for #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Codinablack committed Dec 13, 2024
1 parent 8e4a5bb commit 5f45e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luascript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9840,7 +9840,7 @@ int LuaScriptInterface::luaPlayerGetMaxMana(lua_State* L)
// player:getMaxMana()
const Player* player = getUserdata<const Player>(L, 1);
if (player) {
lua_pushnumber(L, player->getMaxMana());
lua_pushinteger(L, player->getMaxMana());
} else {
lua_pushnil(L);
}
Expand Down

0 comments on commit 5f45e69

Please sign in to comment.