From 7811e2361191a0c30d4961b3251b71269d167c77 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Wed, 12 Jun 2024 20:16:04 -0500 Subject: [PATCH] Convert to use mcl_playerinfo --- mods/ENVIRONMENT/mcl_weather/skycolor/water.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENVIRONMENT/mcl_weather/skycolor/water.lua b/mods/ENVIRONMENT/mcl_weather/skycolor/water.lua index 4dd7120be..c1e9a5927 100644 --- a/mods/ENVIRONMENT/mcl_weather/skycolor/water.lua +++ b/mods/ENVIRONMENT/mcl_weather/skycolor/water.lua @@ -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