mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
bugfix de "flowers-plus"
Merci à Davedevils pour ce bugfix, qui faisait crasher le serveur
This commit is contained in:
parent
6a795320a7
commit
199c75dd27
3
mods/plantlife_modpack/flowers_plus/init.lua
Executable file → Normal file
3
mods/plantlife_modpack/flowers_plus/init.lua
Executable file → Normal file
@ -118,7 +118,8 @@ for i in ipairs(lilies_list) do
|
||||
elseif waterlily == 8 then
|
||||
nodename = "flowers:waterlily_s4"
|
||||
end
|
||||
minetest.set_node(place_pos, {name = nodename, param2 = math.random(0,3) })
|
||||
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) })
|
||||
else
|
||||
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
||||
minetest.set_node(place_pos, {name = "flowers:waterlily", param2 = fdir})
|
||||
|
Loading…
Reference in New Issue
Block a user