backported nil check from tenplus1 fork

* take notice from https://forum.minetest.net/viewtopic.php?p=389433#p389433
* also check previous error
main
Герхард PICCORO Lenz McKAY 2022-01-21 13:23:46 -04:00
parent eedef229d7
commit 97c29052fd
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ minetest.register_entity(fname, {
end
end
end
local apos = self.object:get_pos()
local apos = self.object:get_pos(); if not apos then return end
local part = minetest.add_particlespawner(
6, --amount
0.3, --time