diff options
author | sfan5 <sfan5@live.de> | 2017-01-09 16:39:40 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-01-09 16:39:40 +0100 |
commit | 73fdb635974cb11521d80f15261b97d6fac53cd0 (patch) | |
tree | 5ad15d07126ea49883dbdea145a06784b581824b /builtin | |
parent | 8c1b4f298e2812598b0350e8c86b6a0788062ed7 (diff) | |
download | minetest-73fdb635974cb11521d80f15261b97d6fac53cd0.tar.gz minetest-73fdb635974cb11521d80f15261b97d6fac53cd0.tar.bz2 minetest-73fdb635974cb11521d80f15261b97d6fac53cd0.zip |
builtin/.../falling.lua: Avoid crash when hitting unknown nodes
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/game/falling.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/falling.lua b/builtin/game/falling.lua index 4696ce481..39a74008c 100644 --- a/builtin/game/falling.lua +++ b/builtin/game/falling.lua @@ -83,7 +83,7 @@ core.register_entity(":__builtin:falling_node", { -- it's drops if n2.name ~= "air" and (not nd or nd.liquidtype == "none") then core.remove_node(np) - if nd.buildable_to == false then + if nd and nd.buildable_to == false then -- Add dropped items local drops = core.get_node_drops(n2.name, "") for _, dropped_item in pairs(drops) do |