From 81e6734100a76c6cb6c1ffe921152ad4508d7cb5 Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 1 Sep 2022 11:40:23 +0200 Subject: [PATCH] Fix possible crash on playerleave --- mods/ENTITIES/mobs_mc/enderman.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ENTITIES/mobs_mc/enderman.lua b/mods/ENTITIES/mobs_mc/enderman.lua index 6c38c9f690..600ed58b58 100644 --- a/mods/ENTITIES/mobs_mc/enderman.lua +++ b/mods/ENTITIES/mobs_mc/enderman.lua @@ -618,6 +618,7 @@ mcl_mobs:register_mob("mobs_mc:enderman", { }) minetest.register_on_leaveplayer(function(player) + if not spawners[player] then return end for _,s in pairs(spawners[player]) do minetest.delete_particlespawner(s) end