mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Update libentity.cpp
This commit is contained in:
parent
3c10611fda
commit
74c9070fdc
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ static int l_spawn(lua::State* L) {
|
|||
auto level = controller->getLevel();
|
||||
auto defname = lua::tostring(L, 1);
|
||||
if (defname == nullptr) {
|
||||
throw std::runtime_error("string is nil");
|
||||
throw std::runtime_error("invalid string");
|
||||
}
|
||||
auto& def = content->entities.require(defname);
|
||||
auto pos = lua::tovec3(L, 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue