kno10 0752ed17d8 Improve cacti and cane growth ABM (#4590)
- local functions, as they are not called by anywhere else
- delay water check of reed, first check height
- reduce number of get_node calls (for height 1,2,3 the old code used 4,5,4 calls, the new only 2,3,3)
- cane growth rate is also reduced

This will make the ABM cheaper.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4590
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-09-09 20:22:04 +02:00
..
2021-12-23 18:02:43 +01:00

VoxeLibre core mod
====================
Originally forked from Minetest Game's default mod in the distant past.

License information
===================

License of source code:
-----------------------
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

License of all textures and sounds
----------------------------------
MIT License.

The textures are taken from the Minecraft resource pack “Faithful 1.11” by Vattic and
xMrVizzy and contributers.

Sounds
======
All sounds included in this mod are under the MIT License.
The other sounds used in this mod can be found in CORE/mcl_sounds.

http://www.gnu.org/licenses/lgpl-2.1.html

License of everything not listed here
-------------------------------------
celeron55, Perttu Ahola <celeron55@gmail.com>
CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0/>