Skip to content

Commit

Permalink
additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jan 28, 2020
1 parent 537d66b commit d8c1a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function minetest.is_protected(pos, digger)
return old_is_protected(pos, digger)
end

if has_protector_mod and protector.tool.register_protector then
if has_protector_mod and protector.tool and protector.tool.register_protector then
protector.tool:register_protector('xp_redo:protector', {
nodes = nil, -- Compatible nodes for protector tool, uses same on_place, radius, etc.
param2 = nil, -- Default param2 for protector
Expand Down

0 comments on commit d8c1a09

Please sign in to comment.