forked from nalc/homedecor_modpack
fix a copy&paste error, trim a couple redundant lines of code
This commit is contained in:
parent
744b016f93
commit
f99827d9f2
|
@ -154,8 +154,8 @@ for i in ipairs(sides) do
|
||||||
for j in ipairs(homedecor.door_models) do
|
for j in ipairs(homedecor.door_models) do
|
||||||
local doorname = homedecor.door_models[j][1]
|
local doorname = homedecor.door_models[j][1]
|
||||||
local doordesc = homedecor.door_models[j][2]
|
local doordesc = homedecor.door_models[j][2]
|
||||||
local nodeboxes_top = nil
|
local nodeboxes_top = homedecor.door_models[j][5]
|
||||||
local nodeboxes_bottom = nil
|
local nodeboxes_bottom = homedecor.door_models[j][6]
|
||||||
local texalpha = false
|
local texalpha = false
|
||||||
if doorname == "exterior_fancy" then
|
if doorname == "exterior_fancy" then
|
||||||
texalpha = true
|
texalpha = true
|
||||||
|
@ -163,10 +163,7 @@ for i in ipairs(sides) do
|
||||||
|
|
||||||
if side == "left" then
|
if side == "left" then
|
||||||
nodeboxes_top = homedecor.door_models[j][3]
|
nodeboxes_top = homedecor.door_models[j][3]
|
||||||
nodeboxes_bottomtom = homedecor.door_models[j][4]
|
nodeboxes_bottom = homedecor.door_models[j][4]
|
||||||
else
|
|
||||||
nodeboxes_top = homedecor.door_models[j][5]
|
|
||||||
nodeboxes_bottomtom = homedecor.door_models[j][6]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local lower_top_side = "homedecor_door_"..doorname.."_tb.png"
|
local lower_top_side = "homedecor_door_"..doorname.."_tb.png"
|
||||||
|
@ -250,7 +247,7 @@ for i in ipairs(sides) do
|
||||||
selection_box = selectboxes_bottom,
|
selection_box = selectboxes_bottom,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = nodeboxes_bottomtom
|
fixed = nodeboxes_bottom
|
||||||
},
|
},
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name == "homedecor:door_"..doorname.."_top_"..side then
|
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name == "homedecor:door_"..doorname.."_top_"..side then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user