diff options
author | Novatux <nathanael.courant@laposte.net> | 2015-06-23 19:16:22 +0200 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2015-06-23 19:16:22 +0200 |
commit | 528b21da7f28a356d7b041a6bd37442273a0d49b (patch) | |
tree | 3b2f81b369bd2dcd3ecc03c8c45d909742ad70a0 | |
parent | dada8474fed067c2c89684147ae0b0c7da36074a (diff) | |
download | pipeworks-528b21da7f28a356d7b041a6bd37442273a0d49b.tar pipeworks-528b21da7f28a356d7b041a6bd37442273a0d49b.tar.gz pipeworks-528b21da7f28a356d7b041a6bd37442273a0d49b.tar.bz2 pipeworks-528b21da7f28a356d7b041a6bd37442273a0d49b.tar.xz pipeworks-528b21da7f28a356d7b041a6bd37442273a0d49b.zip |
Try to fix crash
-rw-r--r-- | luaentity.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/luaentity.lua b/luaentity.lua index 241da14..e45a8b2 100644 --- a/luaentity.lua +++ b/luaentity.lua @@ -251,6 +251,10 @@ end -- end function luaentity.add_entity(pos, name) + if not luaentity.entities then + minetest.after(0, luaentity.add_entity, vector.new(pos), name) + return + end local index = luaentity.entities_index while luaentity.entities[index] do index = index + 1 |