Commit 69b9598dec79077ff0c22ac41f9c20caf61a05d9
1 parent
026743ab
Unexisting particles (because of removed addon/..) will not prevent loading (sho…
…uld help with some world.teaw issues)
Showing
1 changed file
with
6 additions
and
1 deletions
... | ... | @@ -58,7 +58,12 @@ function _M:loaded() |
58 | 58 | local islast = false |
59 | 59 | local sub_particle = self.args.sub_particle |
60 | 60 | local sub_particle_args = self.args.sub_particle_args |
61 | - if type(self.def) == "string" then | |
61 | + if type(self.def) == "string" then | |
62 | + if not config.settings.cheat and not fs.exists("/data/gfx/particles/"..self.def..".lua") then | |
63 | + print("[PARTICLES] system"..self.def.." does not exist, replacing with dummy") | |
64 | + self.def = "dummy" | |
65 | + end | |
66 | + | |
62 | 67 | local f, err = loadfile("/data/gfx/particles/"..self.def..".lua") |
63 | 68 | if not f and err then error(err) end |
64 | 69 | local t = self.args or {} | ... | ... |
-
Please register or login to post a comment