planted acacia got spruce #1031

Closed
opened 2021-01-30 01:58:40 +01:00 by kay27 · 3 comments
Contributor

image

![image](/attachments/e0a1f2d1-de8f-4c6a-9f3d-f11286cd43cf)
796 KiB
kay27 added the
bug
gameplay
#P3: elevated
labels 2021-01-30 01:58:40 +01:00
Author
Contributor

actually sapling_grow_action() function is mind-blowing for me

i've understood it, but what was the reason for doing it this way:

you define functions which return a function, which freely uses parent parameters :)

okay, i'm not so familiar with Lua, to be sure if this is an suitable way, where is the parental variables scope in fact? can't it mix up the trees?

i would better rewrite it from scratch, but again, if i only know the reason for this code style! it isn't a lambda function, just some not very common thing for me.

actually ```sapling_grow_action()``` function is mind-blowing for me i've understood it, but what was the reason for doing it this way: you define functions which return _a function_, which freely uses parent parameters :) okay, i'm not so familiar with Lua, to be sure if this is an suitable way, where is the parental variables scope in fact? can't it mix up the trees? i would better rewrite it from scratch, but again, if i only know the reason for this code style! it isn't a lambda function, just some not very common thing for me.
Author
Contributor
ref. https://git.minetest.land/Wuzzy/MineClone2/issues/1028
Author
Contributor

It's my bad.
Fixed now.
But have no idea what Quile had seen, then

It's my bad. Fixed now. But have no idea what Quile had seen, then
kay27 closed this issue 2021-01-30 02:25:16 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: VoxeLibre/VoxeLibre#1031
No description provided.