mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 19:02:26 +01:00
[mcl_ocean] fix warnings
This commit is contained in:
parent
c1a717238b
commit
e91ee174a4
@ -38,7 +38,7 @@ local mt_is_creative_enabled = minetest.is_creative_enabled
|
||||
local mt_sound_play = minetest.sound_play
|
||||
|
||||
local math = math
|
||||
local string = string
|
||||
--local string = string
|
||||
local table = table
|
||||
|
||||
-- DEBUG: functions
|
||||
@ -422,7 +422,7 @@ end
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
@ -759,7 +759,6 @@ minetest.register_craftitem("mcl_ocean:dried_kelp", {
|
||||
groups = { food = 2, eatable = 1 },
|
||||
on_place = minetest.item_eat(1),
|
||||
on_secondary_use = minetest.item_eat(1),
|
||||
groups = { food = 2, eatable = 1 },
|
||||
_mcl_saturation = 0.6,
|
||||
})
|
||||
|
||||
|
@ -12,7 +12,7 @@ local function sea_pickle_on_place(itemstack, placer, pointed_thing)
|
||||
local node_under = minetest.get_node(pos_under)
|
||||
local node_above = minetest.get_node(pos_above)
|
||||
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
|
||||
return def_under.on_rightclick(pos_under, node_under,
|
||||
|
@ -105,7 +105,7 @@ for s=1, #surfaces do
|
||||
doc_longdesc = S("Seagrass grows inside water on top of dirt, sand or gravel.")
|
||||
desc = S("Seagrass")
|
||||
doc_create = true
|
||||
doc_img = "mcl_ocean_seagrass.png"
|
||||
doc_img = "mcl_ocean_seagrass.png^[verticalframe:12:0"
|
||||
else
|
||||
doc_create = false
|
||||
end
|
||||
@ -113,7 +113,7 @@ for s=1, #surfaces do
|
||||
_doc_items_entry_name = desc,
|
||||
_doc_items_longdesc = doc_longdesc,
|
||||
_doc_items_create_entry = doc_create,
|
||||
_doc_items_image = "mcl_ocean_seagrass.png^[verticalframe:12:0",
|
||||
_doc_items_image = doc_img,
|
||||
drawtype = "plantlike_rooted",
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
|
Loading…
Reference in New Issue
Block a user