Skip to content
Permalink
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 1, 2017
1 parent 1d45b27 commit 6d67badcacded366db681b5dfecf7a3ae07bc408
Showing with 1 addition and 1 deletion.
  1. +1 −1 mods/screwdriver/init.lua
@@ -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
return
end

0 comments on commit 6d67bad

Please sign in to comment.
You can’t perform that action at this time.