diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-02-08 11:27:23 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-02-08 11:27:23 +0000 |
commit | 8e18a4e4aa3a544c3ea0f4d382610e93e706de20 (patch) | |
tree | 9e8b1bb8f0b848273383b3f7a2bd122c2568c2d7 /init.lua | |
parent | 1e7214a6abc9a04bef78f028a76dc5d1d5bd7f28 (diff) |
added nil check for placer and refill
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -447,7 +447,7 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname) minetest.sound_play("default_place_node", {pos = pt.above, gain = 1.0}) - if not farming.is_creative(placer:get_player_name()) then + if not placer or not farming.is_creative(placer:get_player_name()) then local name = itemstack:get_name() |