Fix get_sky compat warnings
This commit is contained in:
parent
17673eae07
commit
fa6f9212de
@ -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
|
||||
|
||||
........................................................................
|
||||
========================================================================
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user