1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Schematics: Add core.place_schematic_on_vmanip API

Fix memory leak in minetest.place_schematic
Slightly refactor Schematic code
This commit is contained in:
kwolekr 2015-11-04 03:33:12 -05:00
parent 732cabee19
commit 1384108f8c
6 changed files with 112 additions and 19 deletions

View file

@ -351,7 +351,7 @@ size_t DecoSchematic::generate(MMVManip *vm, PseudoRandom *pr, v3s16 p)
bool force_placement = (flags & DECO_FORCE_PLACEMENT);
schematic->blitToVManip(p, vm, rot, force_placement);
schematic->blitToVManip(vm, p, rot, force_placement);
return 1;
}