Fixed crash on rotate and protector variable

This commit is contained in:
TenPlus1 2015-11-25 12:00:39 +00:00
parent 8450e7ed34
commit 16a968bcba
2 changed files with 1 additions and 3 deletions

@ -270,7 +270,7 @@ if minetest.get_modpath("protector") then
lucky_block:add_blocks({
{"dro", {"protector:protect"}, 3},
})
if protector.mod and protector.mod == "redo" then
if protector and protector.mod and protector.mod == "redo" then
lucky_block:add_blocks({
{"dro", {"protector:protect2"}, 3},
{"dro", {"protector:door_wood"}, 1},

@ -439,7 +439,6 @@ end
-- lucky block itself
minetest.register_node('lucky_block:lucky_block', {
description = "Lucky Block",
drawtype = "nodebox",
tiles = {"lucky_block.png"},
inventory_image = minetest.inventorycube("lucky_block.png"),
sunlight_propagates = false,
@ -467,7 +466,6 @@ minetest.register_craft({
-- super lucky block
minetest.register_node('lucky_block:super_lucky_block', {
description = "Super Lucky Block (use Pick)",
drawtype = "nodebox",
tiles = {"lucky_block_super.png"},
inventory_image = minetest.inventorycube("lucky_block_super.png"),
sunlight_propagates = false,