mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
replace several explicit nodebox definitions with the function-version
This commit is contained in:
parent
91092d99be
commit
628c37e29e
@ -195,10 +195,7 @@ homedecor.register("shower_tray", {
|
||||
{ 0.45, -0.45, -0.45, 0.5, -0.4, 0.45 }
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 },
|
||||
},
|
||||
selection_box = homedecor.nodebox.slab_y(0.1),
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_destruct = function(pos)
|
||||
|
@ -145,11 +145,7 @@ homedecor.register("space_heater", {
|
||||
}
|
||||
})
|
||||
|
||||
local r_cbox = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.25, 0.5, 0.5, 0.5 }
|
||||
}
|
||||
|
||||
local r_cbox = homedecor.nodebox.slab_z(-0.25)
|
||||
homedecor.register("radiator", {
|
||||
mesh = "homedecor_radiator.obj",
|
||||
tiles = {
|
||||
|
@ -26,8 +26,8 @@ homedecor.register("ceiling_tile", {
|
||||
|
||||
local rug_types = {
|
||||
{ "small", "homedecor_small_rug.obj" },
|
||||
{ "large", { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 } },
|
||||
{ "persian", { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 } }
|
||||
{ "large", homedecor.box.slab_y(0.0625)},
|
||||
{ "persian", homedecor.box.slab_y(0.0625)}
|
||||
}
|
||||
|
||||
for i in ipairs(rug_types) do
|
||||
|
Loading…
Reference in New Issue
Block a user