fix a few minor bugs

This commit is contained in:
FaceDeer
2020-01-30 03:29:32 -07:00
parent ff1d5d0af2
commit 9e53ee9836
8 changed files with 26 additions and 7 deletions

View File

@ -272,6 +272,10 @@ minetest.register_node("df_primordial_items:fern_sapling", {
wield_image = "dfcaverns_jungle_fern_03.png",
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, sapling = 1, light_sensitive_fungus = 13},
_dfcaverns_dead_node = "default:dry_shrub",
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
},
paramtype = "light",
drawtype = "plantlike",
buildable_to = true,

View File

@ -95,6 +95,10 @@ minetest.register_node("df_primordial_items:jungle_mushroom_sapling", {
inventory_image = "dfcaverns_jungle_mushroom_02.png^[brighten",
wield_image = "dfcaverns_jungle_mushroom_02.png^[brighten",
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, light_sensitive_fungus = 13},
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
},
paramtype = "light",
drawtype = "plantlike",
buildable_to = true,

View File

@ -226,6 +226,10 @@ minetest.register_node("df_primordial_items:jungletree_sapling", {
wield_image = "dfcaverns_jungle_sapling.png",
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, sapling = 1, light_sensitive_fungus = 13},
_dfcaverns_dead_node = "default:dry_shrub",
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
},
paramtype = "light",
drawtype = "plantlike",
buildable_to = true,

View File

@ -692,6 +692,10 @@ minetest.register_node("df_primordial_items:mush_sapling", {
inventory_image = "dfcaverns_mush_sapling.png",
wield_image = "dfcaverns_mush_sapling.png",
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, sapling = 1, light_sensitive_fungus = 11},
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
},
paramtype = "light",
drawtype = "plantlike",
buildable_to = true,
@ -715,7 +719,7 @@ minetest.register_node("df_primordial_items:mush_sapling", {
if df_farming and df_farming.kill_if_sunlit(pos) then
return
end
local mushroom = df_primordial.get_primordial_mushroom()
local mushroom = df_primordial_items.get_primordial_mushroom()
local rotation = (math.random(1,4)-1)*90
minetest.set_node(pos, {name="air"}) -- clear sapling so mushroom can replace it
mapgen_helper.place_schematic(pos, mushroom, rotation)