Skip to content
Browse files
Screwdriver: Fix crash
If 'node_box' is nil 'node_box.type' causes a crash.
  • Loading branch information
tenplus1 authored and paramat committed Mar 7, 2017
1 parent 1d45b27 commit 6d67badcacded366db681b5dfecf7a3ae07bc408
Showing 1 changed file with 1 addition and 1 deletion.
@@ -67,7 +67,7 @@ screwdriver.handler = function(itemstack, user, pointed_thing, mode, uses)
if not ndef or not ndef.paramtype2 == "facedir" or
ndef.on_rotate == false or
(ndef.drawtype == "nodebox" and
not ndef.node_box.type == "fixed") or
(ndef.node_box and ndef.node_box.type ~= "fixed")) or
node.param2 == nil then

0 comments on commit 6d67bad

Please sign in to comment.