projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c1b4f2
)
builtin/.../falling.lua: Avoid crash when hitting unknown nodes
author
sfan5
<sfan5@live.de>
Mon, 9 Jan 2017 15:39:40 +0000
(16:39 +0100)
committer
sfan5
<sfan5@live.de>
Mon, 9 Jan 2017 15:39:40 +0000
(16:39 +0100)
builtin/game/falling.lua
patch
|
blob
|
history
diff --git
a/builtin/game/falling.lua
b/builtin/game/falling.lua
index 4696ce4818ffd9e279ccc5d600f2efd8a48ca47c..39a74008cdd2b2e972fdc76b6da3f940b9256a95 100644
(file)
--- 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