Lua: Fix a deprecation warning in the hex reference API

This commit is contained in:
Celtic Minstrel 2022-02-17 13:48:32 -05:00
parent 576cc889e0
commit 351ad17758

View file

@ -92,7 +92,7 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
elseif key == 'overlay_terrain' then
return self.terrain:split('^', {remove_empty=false})[2]
elseif key == 'info' then
return wesnoth.get_terrain_info(wesnoth.current.map[self])
return wesnoth.terrain_types[wesnoth.current.map[self]]
elseif key == 'time_of_day' then
return wesnoth.schedule.get_time_of_day(self)
elseif key == 'illuminated_time' then