mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-31 18:31:04 +00:00
mapgen: drop mapgen id from child mapgens.
This id must be owned by the child mapgen and never be set to a misc value by a developer Also use nullptr in some places
This commit is contained in:
parent
b3716a03a6
commit
b55fc3d773
18 changed files with 36 additions and 40 deletions
|
@ -38,7 +38,7 @@ public:
|
|||
content_t c_node;
|
||||
u8 set_light;
|
||||
|
||||
MapgenSinglenode(int mapgenid, MapgenParams *params, EmergeManager *emerge);
|
||||
MapgenSinglenode(MapgenParams *params, EmergeManager *emerge);
|
||||
~MapgenSinglenode() = default;
|
||||
|
||||
virtual MapgenType getType() const { return MAPGEN_SINGLENODE; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue