Skip to content


Screwdriver: Fix crash
Browse files Browse the repository at this point in the history
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 6d67bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/screwdriver/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d67bad

Please sign in to comment.