mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-11-14 06:10:44 +01:00
fix nil
This commit is contained in:
parent
45e13d263f
commit
b7603c2439
7
init.lua
7
init.lua
|
@ -12,7 +12,7 @@ local S = minetest.get_translator("farming")
|
||||||
|
|
||||||
farming = {
|
farming = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20240907",
|
version = "20240910",
|
||||||
path = minetest.get_modpath("farming"),
|
path = minetest.get_modpath("farming"),
|
||||||
select = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}},
|
select = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}},
|
||||||
select_final = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -2.5/16, 0.5}},
|
select_final = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -2.5/16, 0.5}},
|
||||||
|
@ -482,9 +482,8 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname)
|
||||||
|
|
||||||
minetest.sound_play("default_place_node", {pos = pt.above, gain = 1.0})
|
minetest.sound_play("default_place_node", {pos = pt.above, gain = 1.0})
|
||||||
|
|
||||||
minetest.log("action", string.format(
|
minetest.log("action", string.format("%s planted %s at %s",
|
||||||
"%s planted %s at %s",
|
(placer and placer:is_player() and placer:get_player_name() or "A mod"),
|
||||||
placer:is_player() and placer:get_player_name() or "A mod",
|
|
||||||
itemstack:get_name(), minetest.pos_to_string(pt.above)
|
itemstack:get_name(), minetest.pos_to_string(pt.above)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user