Convert to use mcl_playerinfo

This commit is contained in:
teknomunk 2024-06-12 20:16:04 -05:00
parent 24ff7347b2
commit 7811e23611
1 changed files with 1 additions and 1 deletions

View File

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