mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-15 07:51:50 +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);
|
||||
pushenv(L, *env);
|
||||
try {
|
||||
if (getfield(L, "place_structures_wide")) {
|
||||
pushivec_stack(L, offset);
|
||||
pushivec_stack(L, size);
|
||||
|
|
@ -212,6 +213,9 @@ public:
|
|||
pop(L);
|
||||
}
|
||||
}
|
||||
} catch (const std::runtime_error& err) {
|
||||
logger.error() << err.what();
|
||||
}
|
||||
return placements;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue