mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-24 07:33:44 +01:00
drawers aren't ground content (#91)
see https://github.com/pandorabox-io/pandorabox.io/issues/836
This commit is contained in:
parent
70c30906cd
commit
d089c6ea38
2
init.lua
2
init.lua
@ -351,6 +351,7 @@ if drawers.mcl_loaded then
|
|||||||
description = S("Wooden Trim"),
|
description = S("Wooden Trim"),
|
||||||
tiles = {"drawers_trim.png"},
|
tiles = {"drawers_trim.png"},
|
||||||
groups = {drawer_connector = 1, handy = 1, axey = 1, flammable = 3, wood = 1, building_block = 1, material_wood = 1},
|
groups = {drawer_connector = 1, handy = 1, axey = 1, flammable = 3, wood = 1, building_block = 1, material_wood = 1},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_blast_resistance = 15,
|
_mcl_blast_resistance = 15,
|
||||||
_mcl_hardness = 2,
|
_mcl_hardness = 2,
|
||||||
})
|
})
|
||||||
@ -359,6 +360,7 @@ else
|
|||||||
description = S("Wooden Trim"),
|
description = S("Wooden Trim"),
|
||||||
tiles = {"drawers_trim.png"},
|
tiles = {"drawers_trim.png"},
|
||||||
groups = {drawer_connector = 1, choppy = 3, oddly_breakable_by_hand = 2},
|
groups = {drawer_connector = 1, choppy = 3, oddly_breakable_by_hand = 2},
|
||||||
|
is_ground_content = false,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -287,6 +287,7 @@ function drawers.register_drawer(name, def)
|
|||||||
def.paramtype2 = "facedir"
|
def.paramtype2 = "facedir"
|
||||||
def.legacy_facedir_simple = true
|
def.legacy_facedir_simple = true
|
||||||
def.groups = def.groups or {}
|
def.groups = def.groups or {}
|
||||||
|
def.is_ground_content = def.is_ground_content == true
|
||||||
def.drawer_stack_max_factor = def.drawer_stack_max_factor or 24
|
def.drawer_stack_max_factor = def.drawer_stack_max_factor or 24
|
||||||
|
|
||||||
-- events
|
-- events
|
||||||
|
@ -420,6 +420,7 @@ local function register_controller()
|
|||||||
def.paramtype = "light"
|
def.paramtype = "light"
|
||||||
def.paramtype2 = "facedir"
|
def.paramtype2 = "facedir"
|
||||||
def.legacy_facedir_simple = true
|
def.legacy_facedir_simple = true
|
||||||
|
def.is_ground_content = false
|
||||||
|
|
||||||
-- add pipe connectors, if pipeworks is enabled
|
-- add pipe connectors, if pipeworks is enabled
|
||||||
if pipeworks_loaded then
|
if pipeworks_loaded then
|
||||||
|
Loading…
Reference in New Issue
Block a user