1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-13 03:20:19 +02:00

Moved detection of infinite creative-mode stacks to init.lua, changed lights and tables to use it. Fixed tables properly. Fixed missing drops in large square tables. Fixed incorrect texture placement on on-side small square glass and wood tables.

This commit is contained in:
Vanessa Ezekowitz
2013-04-17 03:14:09 -04:00
parent 44dd0bd82d
commit 04999af13d
3 changed files with 29 additions and 24 deletions

View File

@ -79,7 +79,7 @@ for i in ipairs(materials) do
else
minetest.env:add_node(above, {name = 'homedecor:'..m..'_table_small_square_b'})
end
if not minetest.setting_getbool("creative_mode") or unified_inventory then
if not homedecor_expect_infinite_stacks then
itemstack:take_item()
return itemstack
end
@ -125,12 +125,12 @@ for i in ipairs(materials) do
description = S(d.." Table (Small, Square)"),
drawtype = 'nodebox',
tiles = {
'homedecor_'..m..'_table_small_square_edges.png',
'homedecor_'..m..'_table_small_square_edges.png',
'homedecor_'..m..'_table_small_square_edges.png',
'homedecor_'..m..'_table_small_square_edges.png',
'homedecor_'..m..'_table_small_square_tb.png',
'homedecor_'..m..'_table_small_square_tb.png',
'homedecor_'..m..'_table_small_square_edges.png',
'homedecor_'..m..'_table_small_square_edges.png',
'homedecor_'..m..'_table_small_square_edges.png',
'homedecor_'..m..'_table_small_square_edges.png'
},
sunlight_propagates = true,
paramtype = 'light',
@ -207,7 +207,7 @@ for i in ipairs(materials) do
else
minetest.env:add_node(above, {name = 'homedecor:'..m..'_table_small_round_b'})
end
if not minetest.setting_getbool("creative_mode") or unified_inventory then
if not homedecor_expect_infinite_stacks then
itemstack:take_item()
return itemstack
end
@ -334,7 +334,7 @@ for i in ipairs(materials) do
else
minetest.env:add_node(above, {name = 'homedecor:'..m..'_table_large_b'})
end
if not minetest.setting_getbool("creative_mode") or unified_inventory then
if not homedecor_expect_infinite_stacks then
itemstack:take_item()
return itemstack
end
@ -371,6 +371,7 @@ for i in ipairs(materials) do
type = "fixed",
fixed = { -0.5, 0.4375, -0.5, 0.5, 0.5, 0.5 },
},
drop = 'homedecor:'..m..'_table_large_b'
})
minetest.register_node('homedecor:'..m..'_table_large_s', {
@ -400,6 +401,7 @@ for i in ipairs(materials) do
type = "fixed",
fixed = { -0.5, -0.5, 0.4375, 0.5, 0.5, 0.5 },
},
drop = 'homedecor:'..m..'_table_large_b'
})
minetest.register_alias('homedecor:'..m..'_table_large', 'homedecor:'..m..'_table_large_b')