mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Schematics: Fix minetest.place_schematic() when defined by a Lua table
This commit is contained in:
parent
60feb4ad25
commit
390c0cd691
2 changed files with 8 additions and 5 deletions
|
@ -57,7 +57,7 @@ void Schematic::updateContentIds()
|
|||
|
||||
flags |= SCHEM_CIDS_UPDATED;
|
||||
|
||||
for (int i = 0; i != size.X * size.Y * size.Z; i++)
|
||||
for (size_t i = 0; i != size.X * size.Y * size.Z; i++)
|
||||
schemdata[i].setContent(c_nodes[schemdata[i].getContent()]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue