mirror of
https://github.com/minetest/minetest.git
synced 2025-06-30 23:20:22 +02:00
Don't call a player event without having player to do a event for
This commit is contained in:
@ -61,6 +61,9 @@ void ScriptApiEnv::environment_Step(float dtime)
|
||||
void ScriptApiEnv::player_event(ServerActiveObject* player, std::string type)
|
||||
{
|
||||
SCRIPTAPI_PRECHECKHEADER
|
||||
|
||||
if (player == NULL)
|
||||
return;
|
||||
|
||||
// Get minetest.registered_playerevents
|
||||
lua_getglobal(L, "minetest");
|
||||
|
Reference in New Issue
Block a user