paramat c0de5646d2 Default: Generalise, optimise and simplify grass spread function
Credit to tenplus1 for the suggestion to generalise for mod use.
Mods can add mod nodes to 'group:spreading_dirt_type' enabling the
function to work with mod nodes.

Add some nodes to this group.

Removing 'dirt_with_grass' etc. from 'neighbors' stops the ABM action
running everywhere and constantly, on the dirt nodes immediately below
the surface nodes. Now the action only runs in the rare case of a dirt
node with neighbouring air, grass decorations or snow.

Remove check for air above to allow grass to spread under light-
transmitting nodes such as fences, walls, plants. This causes spread
under slabs, stairs and glass, when near air, but seems worth it.

Remove unnecessary check for nil node.
2016-10-01 23:15:05 +01:00
..
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00
2016-09-07 04:44:53 +01:00