mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-13 18:01:57 -04:00
Fix some placer nil checks
This commit is contained in:
parent
a3b171e317
commit
70cf7a26fd
6 changed files with 18 additions and 18 deletions
|
@ -625,7 +625,7 @@ function tnt.register_tnt(def)
|
|||
groups = {dig_immediate = 2, mesecon = 2, tnt = 1, flammable = 5},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
after_place_node = function(pos, placer)
|
||||
if placer:is_player() then
|
||||
if placer and placer:is_player() then
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("owner", placer:get_player_name())
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue