mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-04-04 05:11:27 +02:00
Fix possible crash on playerleave
This commit is contained in:
@ -618,6 +618,7 @@ mcl_mobs:register_mob("mobs_mc:enderman", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
|
if not spawners[player] then return end
|
||||||
for _,s in pairs(spawners[player]) do
|
for _,s in pairs(spawners[player]) do
|
||||||
minetest.delete_particlespawner(s)
|
minetest.delete_particlespawner(s)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user