Rename getPlantAtCoords to getPlantAtTile

develop
Ryan Williams 2021-06-23 22:59:39 -07:00 committed by GitHub
parent a67a5d8283
commit 818ff7a946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

@ -1923,10 +1923,10 @@ static int maps_getTileBiomeRgn(lua_State *L)
return Lua::PushPosXY(L, Maps::getTileBiomeRgn(pos));
}
static int maps_getPlantAtCoords(lua_State *L)
static int maps_getPlantAtTile(lua_State *L)
{
auto pos = CheckCoordXYZ(L, 1, true);
Lua::PushDFObject(L, Maps::getPlantAtCoords(pos));
Lua::PushDFObject(L, Maps::getPlantAtTile(pos));
return 1;
}
@ -1939,7 +1939,7 @@ static const luaL_Reg dfhack_maps_funcs[] = {
{ "getTileFlags", maps_getTileFlags },
{ "getRegionBiome", maps_getRegionBiome },
{ "getTileBiomeRgn", maps_getTileBiomeRgn },
{ "getPlantAtCoords", maps_getPlantAtCoords },
{ "getPlantAtTile", maps_getPlantAtTile },
{ NULL, NULL }
};