mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
optimize test generator
This commit is contained in:
parent
9dd4e9640d
commit
519ebc05f1
3 changed files with 7 additions and 11 deletions
|
|
@ -56,7 +56,7 @@ namespace lua {
|
|||
return TYPENAME;
|
||||
}
|
||||
|
||||
std::shared_ptr<Heightmap> getHeightmap() const {
|
||||
const std::shared_ptr<Heightmap>& getHeightmap() const {
|
||||
return map;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,6 @@ public:
|
|||
for (int i = biomeParameters-1; i >= 0; i--) {
|
||||
maps.push_back(
|
||||
lua::touserdata<lua::LuaHeightmap>(L, -1-i)->getHeightmap());
|
||||
|
||||
}
|
||||
lua::pop(L, 1+biomeParameters);
|
||||
return maps;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue