add opaque group to light-sensitive dirt types

Mineclone adds the "opaque" group only to non-light nodes, and torches check for the opaque group to decide whether they can be placed there. light-sensitive nodes need the "light" paramtype to work, though. So adding the opaque group manually to these.
This commit is contained in:
FaceDeer
2022-08-15 16:15:47 -06:00
parent 8a0d4d0c56
commit bec874826a
3 changed files with 13 additions and 14 deletions

View File

@ -137,7 +137,7 @@ minetest.register_node("df_primordial_items:dirt_with_mycelium", {
_doc_items_longdesc = df_primordial_items.doc.dirt_with_mycelium_desc,
_doc_items_usagehelp = df_primordial_items.doc.dirt_with_mycelium_usage,
tiles = {"dfcaverns_mush_soil.png"},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 13, handy=1,shovely=1, dirt=2, building_block=1},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 13, handy=1,shovely=1, dirt=2, building_block=1, opaque=1},
_dfcaverns_dead_node = df_dependencies.node_name_dirt,
is_ground_content = false,
paramtype = "light",

View File

@ -294,7 +294,7 @@ minetest.register_node("df_primordial_items:dirt_with_jungle_grass", {
_doc_items_usagehelp = df_primordial_items.doc.dirt_with_jungle_grass_usage,
tiles = {"dfcaverns_jungle_plant_grass_node_01.png"},
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 13, handy=1,shovely=1, dirt=2, building_block=1},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 13, handy=1,shovely=1, dirt=2, building_block=1, opaque=1},
_dfcaverns_dead_node = df_dependencies.node_name_dirt,
is_ground_content = false,
drop = df_dependencies.node_name_dirt,
@ -324,7 +324,6 @@ minetest.register_node("df_primordial_items:plant_matter", {
_doc_items_usagehelp = df_primordial_items.doc.plant_matter_usage,
tiles = {"dfcaverns_jungle_plant_matter_01.png"},
is_ground_content = false,
paramtype = "light",
groups = {crumbly = 3, soil = 1, flammable = 1, handy=1,shovely=1, dirt=2, building_block=1, fire_encouragement=1, fire_flammability=1},
sounds = df_dependencies.sound_dirt(),
on_timer = function(pos, elapsed)