1
0
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:
TenPlus1 2018-01-26 15:48:09 +00:00
parent 677c4311ab
commit 2ae4f6b7a5
2 changed files with 2 additions and 1 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 B