mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-30 23:30:43 +02:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
5
init.lua
5
init.lua
@ -7,7 +7,7 @@
|
||||
|
||||
farming = {
|
||||
mod = "redo",
|
||||
version = "20210928",
|
||||
version = "20211116",
|
||||
path = minetest.get_modpath("farming"),
|
||||
select = {
|
||||
type = "fixed",
|
||||
@ -340,7 +340,6 @@ function farming.plant_growth_timer(pos, elapsed, node_name)
|
||||
if max_growth == 1 or lambda < 2.0 then
|
||||
|
||||
local light = (minetest.get_node_light(light_pos) or 0)
|
||||
--print ("light level:", light)
|
||||
|
||||
if light < MIN_LIGHT or light > MAX_LIGHT then
|
||||
return true
|
||||
@ -426,7 +425,7 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname)
|
||||
-- thanks to Krock for helping with this issue :)
|
||||
local def = minetest.registered_nodes[under.name]
|
||||
if placer and itemstack and def and def.on_rightclick then
|
||||
return def.on_rightclick(pt.under, under, placer, itemstack)
|
||||
return def.on_rightclick(pt.under, under, placer, itemstack, pt)
|
||||
end
|
||||
|
||||
local above = minetest.get_node(pt.above)
|
||||
|
Reference in New Issue
Block a user