mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-10-27 15:09:25 +01:00
Fixed crash on rotate and protector variable
This commit is contained in:
parent
8450e7ed34
commit
16a968bcba
@ -270,7 +270,7 @@ if minetest.get_modpath("protector") then
|
|||||||
lucky_block:add_blocks({
|
lucky_block:add_blocks({
|
||||||
{"dro", {"protector:protect"}, 3},
|
{"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({
|
lucky_block:add_blocks({
|
||||||
{"dro", {"protector:protect2"}, 3},
|
{"dro", {"protector:protect2"}, 3},
|
||||||
{"dro", {"protector:door_wood"}, 1},
|
{"dro", {"protector:door_wood"}, 1},
|
||||||
|
2
init.lua
2
init.lua
@ -439,7 +439,6 @@ end
|
|||||||
-- lucky block itself
|
-- lucky block itself
|
||||||
minetest.register_node('lucky_block:lucky_block', {
|
minetest.register_node('lucky_block:lucky_block', {
|
||||||
description = "Lucky Block",
|
description = "Lucky Block",
|
||||||
drawtype = "nodebox",
|
|
||||||
tiles = {"lucky_block.png"},
|
tiles = {"lucky_block.png"},
|
||||||
inventory_image = minetest.inventorycube("lucky_block.png"),
|
inventory_image = minetest.inventorycube("lucky_block.png"),
|
||||||
sunlight_propagates = false,
|
sunlight_propagates = false,
|
||||||
@ -467,7 +466,6 @@ minetest.register_craft({
|
|||||||
-- super lucky block
|
-- super lucky block
|
||||||
minetest.register_node('lucky_block:super_lucky_block', {
|
minetest.register_node('lucky_block:super_lucky_block', {
|
||||||
description = "Super Lucky Block (use Pick)",
|
description = "Super Lucky Block (use Pick)",
|
||||||
drawtype = "nodebox",
|
|
||||||
tiles = {"lucky_block_super.png"},
|
tiles = {"lucky_block_super.png"},
|
||||||
inventory_image = minetest.inventorycube("lucky_block_super.png"),
|
inventory_image = minetest.inventorycube("lucky_block_super.png"),
|
||||||
sunlight_propagates = false,
|
sunlight_propagates = false,
|
||||||
|
Loading…
Reference in New Issue
Block a user