mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-10 02:01:07 +01:00
Convert to use mcl_playerinfo
This commit is contained in:
parent
24ff7347b2
commit
7811e23611
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ local function water_sky(player, sky_data)
|
|||
local pos = player:get_pos()
|
||||
local water_color = DEFAULT_WATER_COLOR
|
||||
|
||||
local checkname = minetest.get_node(vector.new(pos.x,pos.y+1.5,pos.z)).name
|
||||
local checkname = mcl_playerinfo[name].node_head
|
||||
if minetest.get_item_group(checkname, "water") == 0 then return end
|
||||
|
||||
local biome_index = minetest.get_biome_data(player:get_pos()).biome
|
||||
|
|
Loading…
Reference in a new issue