aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_craft.h
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2020-09-04 20:49:50 +0200
committerGitHub <noreply@github.com>2020-09-04 20:49:50 +0200
commitb3ace8f19746b53f839e7b0bdff0843c83866f64 (patch)
treee11e64bfd4e8092c2f823f32d14121886ce42c79 /src/script/lua_api/l_craft.h
parent050964bed6005f8d816ddf362b9fc8675581d190 (diff)
downloadminetest-b3ace8f19746b53f839e7b0bdff0843c83866f64.tar.gz
minetest-b3ace8f19746b53f839e7b0bdff0843c83866f64.tar.bz2
minetest-b3ace8f19746b53f839e7b0bdff0843c83866f64.zip
Scale inventory image for scaled allfaces nodes (#10225)
The inventory image size of the inventory image of nodes with drawtype allfaces (and related) is scaled as well if visual_scale is set (previously, the inventory image size was always the same)
Diffstat (limited to 'src/script/lua_api/l_craft.h')
0 files changed, 0 insertions, 0 deletions
d">loadBlock(const v3s16 &pos, std::string *block) { s64 i = getBlockAsInteger(pos); std::map<s64, std::string>::iterator it = m_database.find(i); if (it == m_database.end()) { *block = ""; return; } *block = it->second; } bool Database_Dummy::deleteBlock(const v3s16 &pos) { m_database.erase(getBlockAsInteger(pos)); return true; } void Database_Dummy::listAllLoadableBlocks(std::vector<v3s16> &dst) { dst.reserve(m_database.size()); for (std::map<s64, std::string>::const_iterator x = m_database.begin(); x != m_database.end(); ++x) { dst.push_back(getIntegerAsBlock(x->first)); } }