From b7603c243990b6d0b08f8dd9eb8faedd1178e7a8 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 10 Sep 2024 06:58:32 +0100 Subject: [PATCH] fix nil --- init.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index e4fae44..217b23a 100644 --- a/init.lua +++ b/init.lua @@ -12,7 +12,7 @@ local S = minetest.get_translator("farming") farming = { mod = "redo", - version = "20240907", + version = "20240910", path = minetest.get_modpath("farming"), 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}}, @@ -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.log("action", string.format( - "%s planted %s at %s", - placer:is_player() and placer:get_player_name() or "A mod", + minetest.log("action", string.format("%s planted %s at %s", + (placer and placer:is_player() and placer:get_player_name() or "A mod"), itemstack:get_name(), minetest.pos_to_string(pt.above) ))