fix deprecation warning in #14

This commit is contained in:
kaadmy 2016-01-24 14:03:58 -08:00
parent 2d7d231044
commit a19a117968
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ local function step(dtime)
player_lastsound[name] = player_lastsound[name] + 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( particlespawners[name] = minetest.add_particlespawner(
{ {
amount = 2, amount = 2,
@ -65,7 +65,7 @@ local function step(dtime)
minetest.after(0.15, function() minetest.delete_particlespawner(particlespawners[name]) end) minetest.after(0.15, function() minetest.delete_particlespawner(particlespawners[name]) end)
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 if player_lastsound[name] > 3.3 then
player_soundspec[name]=minetest.sound_play( player_soundspec[name]=minetest.sound_play(
"default_water", "default_water",