forked from mtcontrib/homedecor_modpack
fix mis-placement of locked fridge
This commit is contained in:
parent
207c72daa5
commit
da3689dbe5
|
@ -76,7 +76,8 @@ minetest.register_node("homedecor:refrigerator_steel_bottom", {
|
|||
and homedecor.get_nodedef_field(tnode2.name, "buildable_to")
|
||||
and not minetest.is_protected(pos, placer:get_player_name())
|
||||
and not minetest.is_protected(pos2, placer:get_player_name()) then
|
||||
minetest.add_node(pos, { name = "homedecor:refrigerator_steel_bottom", param2 = fdir })
|
||||
local nodename = itemstack:get_name()
|
||||
minetest.add_node(pos, { name = nodename, param2 = fdir })
|
||||
minetest.add_node(pos2, { name = "homedecor:refrigerator_steel_top", param2 = fdir })
|
||||
if not homedecor.expect_infinite_stacks then
|
||||
itemstack:take_item()
|
||||
|
@ -186,7 +187,8 @@ minetest.register_node("homedecor:refrigerator_white_bottom", {
|
|||
and homedecor.get_nodedef_field(tnode2.name, "buildable_to")
|
||||
and not minetest.is_protected(pos, placer:get_player_name())
|
||||
and not minetest.is_protected(pos2, placer:get_player_name()) then
|
||||
minetest.add_node(pos, { name = "homedecor:refrigerator_white_bottom", param2 = fdir })
|
||||
local nodename = itemstack:get_name()
|
||||
minetest.add_node(pos, { name = nodename, param2 = fdir })
|
||||
minetest.add_node(pos2, { name = "homedecor:refrigerator_white_top", param2 = fdir })
|
||||
if not homedecor.expect_infinite_stacks then
|
||||
itemstack:take_item()
|
||||
|
|
Loading…
Reference in New Issue
Block a user