diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-01-03 14:18:13 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-01-03 14:18:13 +0000 |
commit | 2af47e6f5fde46f8edb2feeab858cc63929d3d5a (patch) | |
tree | f914bb3aef92dfd0929b098eea47d9e8f84e65fd /src | |
parent | 2aad3be2cb72aa8f1715f4b938fdf8be22ca39b9 (diff) | |
download | minetest-2af47e6f5fde46f8edb2feeab858cc63929d3d5a.tar.gz minetest-2af47e6f5fde46f8edb2feeab858cc63929d3d5a.tar.bz2 minetest-2af47e6f5fde46f8edb2feeab858cc63929d3d5a.zip |
Fix crash on can_bypass_userlimit returning non-boolean
Diffstat (limited to 'src')
-rw-r--r-- | src/script/cpp_api/s_player.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_player.cpp b/src/script/cpp_api/s_player.cpp index 578c26184..f3c316650 100644 --- a/src/script/cpp_api/s_player.cpp +++ b/src/script/cpp_api/s_player.cpp @@ -134,7 +134,6 @@ bool ScriptApiPlayer::can_bypass_userlimit(const std::string &name, const std::s lua_pushstring(L, name.c_str()); lua_pushstring(L, ip.c_str()); runCallbacks(2, RUN_CALLBACKS_MODE_OR); - FATAL_ERROR_IF(!lua_isboolean(L, -1), "on_user_limitcheck must return a boolean"); return lua_toboolean(L, -1); } |