Fix Nether dust

This commit is contained in:
kay27 2022-01-03 08:16:56 +04:00
parent 7a1cdc89fb
commit 310aba9c11
1 changed files with 3 additions and 3 deletions

View File

@ -21,14 +21,14 @@ local psdef= {
}
local function check_player(player)
local name=player:get_player_name(name)
local name=player:get_player_name(player)
if mcl_worlds.has_dust(player:get_pos()) and not mcl_weather.nether_dust.particlespawners[name] then
return true
end
end
mcl_weather.nether_dust.add_particlespawners = function(player)
local name=player:get_player_name(name)
local name=player:get_player_name(player)
mcl_weather.nether_dust.particlespawners[name]={}
psdef.playername = name
psdef.attached = player
@ -40,7 +40,7 @@ mcl_weather.nether_dust.add_particlespawners = function(player)
end
mcl_weather.nether_dust.delete_particlespawners = function(player)
local name=player:get_player_name(name)
local name=player:get_player_name(player)
if mcl_weather.nether_dust.particlespawners[name] then
for i=1,3 do
minetest.delete_particlespawner(mcl_weather.nether_dust.particlespawners[name][i])