mirror of
https://github.com/minetest/minetest.git
synced 2025-01-11 07:47:31 +01:00
Script API: Fix invalid rotation of L-system trees
The MapNode struct fields param1 and param2 were previously not initialized. This commit now sets them to a sane default.
This commit is contained in:
parent
234b01a8c2
commit
a862e4290c
@ -36,6 +36,13 @@ namespace treegen {
|
||||
};
|
||||
|
||||
struct TreeDef : public NodeResolver {
|
||||
TreeDef() :
|
||||
// Initialize param1 and param2
|
||||
trunknode(CONTENT_IGNORE),
|
||||
leavesnode(CONTENT_IGNORE),
|
||||
leaves2node(CONTENT_IGNORE),
|
||||
fruitnode(CONTENT_IGNORE)
|
||||
{}
|
||||
virtual void resolveNodeNames();
|
||||
|
||||
std::string initial_axiom;
|
||||
|
Loading…
Reference in New Issue
Block a user