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 e1300e29b0
commit e518fe622b

View File

@ -155,7 +155,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