Fix get_sky compat warnings

This commit is contained in:
Aaron Suen 2022-04-06 07:07:35 -04:00
parent 17673eae07
commit fa6f9212de
2 changed files with 6 additions and 1 deletions

View File

@ -61,5 +61,8 @@ AFTER 5.4 EOS:
AFTER 5.5 EOS:
- Remove get_sky_as_table compat hack in playerstep; always use table
https://github.com/minetest/minetest/commit/44fc888bd64cc00836b0fea0666aa763b2565513
........................................................................
========================================================================

View File

@ -94,7 +94,9 @@ local function step_player(player, dtime)
local orig_phys = clone(data.physics)
data.properties = player:get_properties()
local orig_props = clone(data.properties)
do
if minetest.features.get_sky_as_table then
data.sky = player:get_sky(true)
else
local b, t, x, c = player:get_sky()
local s = player:get_sky_color()
data.sky = {