Skip to content

Commit

Permalink
check player name
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed May 20, 2024
1 parent f3c324c commit 27e6cfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wielder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ if pipeworks.enable_deployer then
fakeplayer:set_wielded_item(new_stack or stack)
-- minetest.item_place_node doesn't play sound to the placer
local sound = placed_pos and def.sounds and def.sounds.place
if sound then
local name = fakeplayer:get_player_name()
local name = fakeplayer:get_player_name()
if sound and name ~= "" then
minetest.sound_play(sound, {pos = placed_pos, to_player = name}, true)
end
end
Expand Down

0 comments on commit 27e6cfa

Please sign in to comment.