Skip to content

Commit

Permalink
Fix SFX stopping on plantlike nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Panquesito7 committed Dec 20, 2023
1 parent b6a5cec commit 9edeec5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,9 @@ end
--- @return nil
local function wall_jump(player, dtime)
local node = minetest.get_node(vector.new(player:get_pos().x, player:get_pos().y - 0.3, player:get_pos().z))
if node and node.name ~= "air" then
local node_def = node and minetest.registered_nodes[node.name]

if node and node_def and node.name ~= "air" and node_def.drawtype ~= "plantlike" then
minetest.sound_stop(sounds.slide_sound_id[player:get_player_name()] or 0)
end

Expand Down

0 comments on commit 9edeec5

Please sign in to comment.