Skip to content
Permalink
Browse files

builtin/.../falling.lua: Avoid crash when hitting unknown nodes

  • Loading branch information
sfan5 committed Jan 9, 2017
1 parent 8c1b4f2 commit 73fdb635974cb11521d80f15261b97d6fac53cd0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 73fdb63

Please sign in to comment.