mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 14:53:16 -04:00
Remove unrequired code
This commit is contained in:
parent
10b5b7d7b7
commit
4823ce9592
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,6 @@ farming.place_seed = function(itemstack, placer, pointed_thing, plantname)
|
|||
|
||||
local under = minetest.get_node(pt.under)
|
||||
local above = minetest.get_node(pt.above)
|
||||
local place_to = {x = pt.above.x, y = pt.above.y, z = pt.above.z}
|
||||
|
||||
local player_name = placer and placer:get_player_name() or ""
|
||||
|
||||
|
@ -177,7 +176,8 @@ farming.place_seed = function(itemstack, placer, pointed_thing, plantname)
|
|||
end
|
||||
|
||||
-- add the node and remove 1 item from the itemstack
|
||||
minetest.log("action", player_name .. " places node " .. plantname .. " at " .. minetest.pos_to_string(place_to))
|
||||
minetest.log("action", player_name .. " places node " .. plantname .. " at " ..
|
||||
minetest.pos_to_string(pt.above))
|
||||
minetest.add_node(pt.above, {name = plantname, param2 = 1})
|
||||
tick(pt.above)
|
||||
if not (creative and creative.is_enabled_for
|
||||
|
|
Loading…
Add table
Reference in a new issue