1
0
Fork 0

Remove clay variant for kelp and seagrass

This commit is contained in:
Wuzzy 2019-12-18 04:28:47 +01:00
parent d1f3856de8
commit ee5e50f139
2 changed files with 1 additions and 7 deletions

View File

@ -3,7 +3,6 @@ local S = minetest.get_translator("mcl_ocean")
-- List of supported surfaces for seagrass and kelp -- List of supported surfaces for seagrass and kelp
local surfaces = { local surfaces = {
{ "dirt", "mcl_core:dirt" }, { "dirt", "mcl_core:dirt" },
{ "clay", "mcl_core:clay" },
{ "sand", "mcl_core:sand", 1 }, { "sand", "mcl_core:sand", 1 },
{ "redsand", "mcl_core:redsand", 1 }, { "redsand", "mcl_core:redsand", 1 },
{ "gravel", "mcl_core:gravel", 1 }, { "gravel", "mcl_core:gravel", 1 },
@ -51,8 +50,6 @@ local function kelp_on_place(itemstack, placer, pointed_thing)
-- Select a kelp node -- Select a kelp node
if node_under.name == "mcl_core:dirt" then if node_under.name == "mcl_core:dirt" then
node_under.name = "mcl_ocean:kelp_dirt" node_under.name = "mcl_ocean:kelp_dirt"
elseif node_under.name == "mcl_core:clay" then
node_under.name = "mcl_ocean:kelp_clay"
elseif node_under.name == "mcl_core:sand" then elseif node_under.name == "mcl_core:sand" then
node_under.name = "mcl_ocean:kelp_sand" node_under.name = "mcl_ocean:kelp_sand"
elseif node_under.name == "mcl_core:redsand" then elseif node_under.name == "mcl_core:redsand" then

View File

@ -3,7 +3,6 @@ local S = minetest.get_translator("mcl_ocean")
-- List of supported surfaces for seagrass -- List of supported surfaces for seagrass
local surfaces = { local surfaces = {
{ "dirt", "mcl_core:dirt" }, { "dirt", "mcl_core:dirt" },
{ "clay", "mcl_core:clay" },
{ "sand", "mcl_core:sand", 1 }, { "sand", "mcl_core:sand", 1 },
{ "redsand", "mcl_core:redsand", 1 }, { "redsand", "mcl_core:redsand", 1 },
{ "gravel", "mcl_core:gravel", 1 }, { "gravel", "mcl_core:gravel", 1 },
@ -51,8 +50,6 @@ local function seagrass_on_place(itemstack, placer, pointed_thing)
-- Select a seagrass node -- Select a seagrass node
if node_under.name == "mcl_core:dirt" then if node_under.name == "mcl_core:dirt" then
node_under.name = "mcl_ocean:seagrass_dirt" node_under.name = "mcl_ocean:seagrass_dirt"
elseif node_under.name == "mcl_core:clay" then
node_under.name = "mcl_ocean:seagrass_clay"
elseif node_under.name == "mcl_core:sand" then elseif node_under.name == "mcl_core:sand" then
node_under.name = "mcl_ocean:seagrass_sand" node_under.name = "mcl_ocean:seagrass_sand"
elseif node_under.name == "mcl_core:redsand" then elseif node_under.name == "mcl_core:redsand" then
@ -103,7 +100,7 @@ for s=1, #surfaces do
sounds.place = leaf_sounds.place sounds.place = leaf_sounds.place
local doc_longdesc, doc_hide, doc_img, desc local doc_longdesc, doc_hide, doc_img, desc
if surfaces[s][1] == "dirt" then if surfaces[s][1] == "dirt" then
doc_longdesc = S("Seagrass grows inside water on top of dirt, sand, clay or gravel.") doc_longdesc = S("Seagrass grows inside water on top of dirt, sand or gravel.")
desc = S("Seagrass") desc = S("Seagrass")
doc_create = true doc_create = true
doc_img = "mcl_ocean_seagrass.png" doc_img = "mcl_ocean_seagrass.png"