mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Remove usage of mapgen::add_random_objects(block)
This commit is contained in:
parent
9a4ef87859
commit
8609af54fc
15
src/map.cpp
15
src/map.cpp
@ -2262,21 +2262,6 @@ MapBlock* ServerMap::finishBlockMake(mapgen::BlockMakeData *data,
|
||||
#endif
|
||||
}
|
||||
|
||||
// Center blocks
|
||||
for(s16 x=blockpos_min.X; x<=blockpos_max.X; x++)
|
||||
for(s16 z=blockpos_min.Z; z<=blockpos_max.Z; z++)
|
||||
for(s16 y=blockpos_min.Y; y<=blockpos_max.Y; y++)
|
||||
{
|
||||
v3s16 p(x, y, z);
|
||||
MapBlock *block = getBlockNoCreateNoEx(p);
|
||||
assert(block);
|
||||
|
||||
/*
|
||||
Add random objects to block
|
||||
*/
|
||||
mapgen::add_random_objects(block);
|
||||
}
|
||||
|
||||
/*
|
||||
Go through changed blocks
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user