[mcl_ocean] fix warnings

This commit is contained in:
AFCMS 2021-05-22 23:12:33 +02:00
parent c1a717238b
commit e91ee174a4
3 changed files with 5 additions and 6 deletions

View file

@ -38,7 +38,7 @@ local mt_is_creative_enabled = minetest.is_creative_enabled
local mt_sound_play = minetest.sound_play local mt_sound_play = minetest.sound_play
local math = math local math = math
local string = string --local string = string
local table = table local table = table
-- DEBUG: functions -- DEBUG: functions
@ -422,7 +422,7 @@ end
function kelp.surface_after_dig_node(pos, node) function kelp.surface_after_dig_node(pos, node)
return mt_set_node(pos, {name=registred_nodes[node.name].node_dig_prediction}) return mt_set_node(pos, {name=minetest.registered_nodes[node.name].node_dig_prediction})
end end
@ -759,7 +759,6 @@ minetest.register_craftitem("mcl_ocean:dried_kelp", {
groups = { food = 2, eatable = 1 }, groups = { food = 2, eatable = 1 },
on_place = minetest.item_eat(1), on_place = minetest.item_eat(1),
on_secondary_use = minetest.item_eat(1), on_secondary_use = minetest.item_eat(1),
groups = { food = 2, eatable = 1 },
_mcl_saturation = 0.6, _mcl_saturation = 0.6,
}) })

View file

@ -12,7 +12,7 @@ local function sea_pickle_on_place(itemstack, placer, pointed_thing)
local node_under = minetest.get_node(pos_under) local node_under = minetest.get_node(pos_under)
local node_above = minetest.get_node(pos_above) local node_above = minetest.get_node(pos_above)
local def_under = minetest.registered_nodes[node_under.name] local def_under = minetest.registered_nodes[node_under.name]
local def_above = minetest.registered_nodes[node_above.name] --local def_above = minetest.registered_nodes[node_above.name]
if def_under and def_under.on_rightclick and not placer:get_player_control().sneak then if def_under and def_under.on_rightclick and not placer:get_player_control().sneak then
return def_under.on_rightclick(pos_under, node_under, return def_under.on_rightclick(pos_under, node_under,

View file

@ -105,7 +105,7 @@ for s=1, #surfaces do
doc_longdesc = S("Seagrass grows inside water on top of dirt, sand 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^[verticalframe:12:0"
else else
doc_create = false doc_create = false
end end
@ -113,7 +113,7 @@ for s=1, #surfaces do
_doc_items_entry_name = desc, _doc_items_entry_name = desc,
_doc_items_longdesc = doc_longdesc, _doc_items_longdesc = doc_longdesc,
_doc_items_create_entry = doc_create, _doc_items_create_entry = doc_create,
_doc_items_image = "mcl_ocean_seagrass.png^[verticalframe:12:0", _doc_items_image = doc_img,
drawtype = "plantlike_rooted", drawtype = "plantlike_rooted",
paramtype = "light", paramtype = "light",
paramtype2 = "meshoptions", paramtype2 = "meshoptions",