mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2024-11-15 23:10:24 +01:00
fixed nil check
This commit is contained in:
parent
677c4311ab
commit
2ae4f6b7a5
3
init.lua
3
init.lua
|
@ -173,7 +173,8 @@ local get_ambience = function(player)
|
|||
end
|
||||
|
||||
-- wading through water
|
||||
if minetest.registered_nodes[nod_feet].groups.water then
|
||||
if minetest.registered_nodes[nod_feet]
|
||||
and minetest.registered_nodes[nod_feet].groups.water then
|
||||
|
||||
local control = player:get_player_control()
|
||||
|
||||
|
|
BIN
textures/trans.png
Normal file
BIN
textures/trans.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 75 B |
Loading…
Reference in New Issue
Block a user