1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

"flowers_plus" bugfix again

This commit is contained in:
Ombridride 2014-11-02 22:09:41 +01:00
parent b8955693eb
commit 5a77af76be

View File

@ -97,7 +97,7 @@ for i in ipairs(lilies_list) do
if not minetest.is_protected(place_pos, placer:get_player_name()) then if not minetest.is_protected(place_pos, placer:get_player_name()) then
local nodename = "default:cobble" -- if this block appears, something went....wrong :-) local nodename = "default:cobble" -- if this block appears, something went....wrong :-)
if place_pos == nil then return itemstack end -- pour éviter crash avec nénuphare
if not keys["sneak"] then if not keys["sneak"] then
local node = minetest.get_node(pt.under) local node = minetest.get_node(pt.under)
local waterlily = math.random(1,8) local waterlily = math.random(1,8)
@ -118,7 +118,6 @@ for i in ipairs(lilies_list) do
elseif waterlily == 8 then elseif waterlily == 8 then
nodename = "flowers:waterlily_s4" nodename = "flowers:waterlily_s4"
end end
if place_pos == nil then return itemstack end -- pour éviter crash avec nénuphare
minetest.set_node(place_pos, {name = nodename, param2 = math.random(0,3) }) minetest.set_node(place_pos, {name = nodename, param2 = math.random(0,3) })
else else
local fdir = minetest.dir_to_facedir(placer:get_look_dir()) local fdir = minetest.dir_to_facedir(placer:get_look_dir())
@ -199,6 +198,7 @@ for i in ipairs(algae_list) do
local nodename = "default:cobble" -- :D local nodename = "default:cobble" -- :D
if place_pos == nil then return itemstack end -- pour éviter crash avec nénuphare
if not keys["sneak"] then if not keys["sneak"] then
--local node = minetest.get_node(pt.under) --local node = minetest.get_node(pt.under)
local seaweed = math.random(1,4) local seaweed = math.random(1,4)