mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-20 01:43:45 +01:00
Convert to use mcl_playerinfo
This commit is contained in:
parent
24ff7347b2
commit
7811e23611
@ -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 New Issue
Block a user