mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 22:25:28 +00:00
Lua: Fix a deprecation warning in the hex reference API
This commit is contained in:
parent
e1300e29b0
commit
e518fe622b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user