diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-10-24 11:32:52 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-10-24 11:32:52 +0200 |
commit | 3a79693bef3c1531dca61ede91cb31922d5f3007 (patch) | |
tree | 78393fb19f94bedb4ed1426ae9d32d3c21076ba8 | |
parent | 4ac603ef6fc7b2c80b9bea482142f6f6294b485c (diff) |
Prevent crash.HEADgpcf/mastermaster
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -915,7 +915,7 @@ minetest.register_abm({ local meta = minetest.get_meta( pos ); local name = meta:get_string('descr'); -- minetest.chat_send_all(name) - if apartment.apartments[name] and ( apartment.apartments[name].pos.x ~= pos.x + if apartment.apartments[name] and apartment.apartments[name].pos and ( apartment.apartments[name].pos.x ~= pos.x or apartment.apartments[name].pos.y ~= pos.y or apartment.apartments[name].pos.z ~= pos.z ) then -- duplicate name old = apartment.apartments[name] |