mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Fix possible crash on playerleave
This commit is contained in:
parent
5bd4d7e6ea
commit
81e6734100
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue