mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
fix fatal error on wrong placement args
This commit is contained in:
parent
cd949126b2
commit
6e6f9616cd
1 changed files with 14 additions and 10 deletions
|
|
@ -196,6 +196,7 @@ public:
|
||||||
|
|
||||||
stackguard _(L);
|
stackguard _(L);
|
||||||
pushenv(L, *env);
|
pushenv(L, *env);
|
||||||
|
try {
|
||||||
if (getfield(L, "place_structures_wide")) {
|
if (getfield(L, "place_structures_wide")) {
|
||||||
pushivec_stack(L, offset);
|
pushivec_stack(L, offset);
|
||||||
pushivec_stack(L, size);
|
pushivec_stack(L, size);
|
||||||
|
|
@ -212,6 +213,9 @@ public:
|
||||||
pop(L);
|
pop(L);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (const std::runtime_error& err) {
|
||||||
|
logger.error() << err.what();
|
||||||
|
}
|
||||||
return placements;
|
return placements;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue