]> git.lizzy.rs Git - minetest.git/commit
Schematic: Properly deal with before/after node resolving and document (#11011)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Sat, 20 Mar 2021 12:02:15 +0000 (13:02 +0100)
committerGitHub <noreply@github.com>
Sat, 20 Mar 2021 12:02:15 +0000 (13:02 +0100)
commit05719913aca97e53ff5b1dde49e1a033a327551f
treee775880bc19a4fd53f3b85362c6dc49edb8d4453
parenta8cc3bdb0890c89d600ef6543c5e9b1b55bcf2b6
Schematic: Properly deal with before/after node resolving and document (#11011)

This fixes an out-of-bounds index access when the node resolver was already applied to the schematic (i.e. biome decoration).
Also improves the handling of the two cases: prior node resolving (m_nodenames), and after node resolving (manual lookup)
src/mapgen/mg_schematic.cpp
src/mapgen/mg_schematic.h
src/nodedef.cpp
src/nodedef.h
src/script/lua_api/l_mapgen.cpp
src/unittest/test_noderesolver.cpp
src/unittest/test_schematic.cpp