mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +01:00
[farming] Remove redundant code
This commit is contained in:
parent
93139c8db7
commit
a78ffd7ffb
@ -540,11 +540,6 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname)
|
||||
local under = minetest.get_node(pt.under)
|
||||
local above = minetest.get_node(pt.above)
|
||||
|
||||
-- check if pointing at the top of the node
|
||||
if pt.above.y ~= pt.under.y + 1 then
|
||||
return
|
||||
end
|
||||
|
||||
-- return if any of the nodes is not registered
|
||||
if not minetest.registered_nodes[under.name]
|
||||
or not minetest.registered_nodes[above.name] then
|
||||
|
Loading…
Reference in New Issue
Block a user