From a19a1179685fc8aa2dadc891c8a331cc1f2b37a5 Mon Sep 17 00:00:00 2001 From: kaadmy Date: Sun, 24 Jan 2016 14:03:58 -0800 Subject: [PATCH] fix deprecation warning in #14 --- mods/default/player.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/default/player.lua b/mods/default/player.lua index 4eb8007..a18fa54 100644 --- a/mods/default/player.lua +++ b/mods/default/player.lua @@ -44,7 +44,7 @@ local function step(dtime) player_lastsound[name] = player_lastsound[name] + dtime - if minetest.get_node_group(minetest.get_node(head_pos).name, 'water') > 0 then + if minetest.get_item_group(minetest.get_node(head_pos).name, 'water') > 0 then particlespawners[name] = minetest.add_particlespawner( { amount = 2, @@ -65,7 +65,7 @@ local function step(dtime) minetest.after(0.15, function() minetest.delete_particlespawner(particlespawners[name]) end) end - if minetest.get_node_group(minetest.get_node(player_pos).name, 'water') > 0 then + if minetest.get_item_group(minetest.get_node(player_pos).name, 'water') > 0 then if player_lastsound[name] > 3.3 then player_soundspec[name]=minetest.sound_play( "default_water",