mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
advanced plants test
This commit is contained in:
parent
5bdabaea42
commit
a81555b979
3 changed files with 11 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
#include "scripting.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
#include "scripting_commons.hpp"
|
||||
#include "typedefs.hpp"
|
||||
#include "lua/lua_engine.hpp"
|
||||
|
|
@ -188,7 +191,7 @@ static inline Biome load_biome(
|
|||
}
|
||||
lua::pop(L);
|
||||
}
|
||||
// TODO: sort by weight descending
|
||||
std::sort(plants.begin(), plants.end(), std::greater<PlantEntry>());
|
||||
|
||||
BlocksLayers groundLayers = load_layers(L, "layers");
|
||||
BlocksLayers seaLayers = load_layers(L, "sea_layers");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue