14 Commits

Author SHA1 Message Date
Vanessa Ezekowitz
d238862327 use on_destruct for vines decay
(after_destruct is used by default mt_game leaf decay now)
2017-03-30 23:16:56 -04:00
Bas
6b3e9ff360 Merge pull request #11 from kaeza/luacheck
Add `.luacheckrc` and fix warnings.
2017-02-17 09:57:29 +01:00
Diego Martínez
0eea598078 Add .luacheckrc and fix warnings. 2017-02-17 03:05:58 -03:00
Diego Martínez
85d37b6694 Actually fix stack overflow. 2017-02-17 02:50:38 -03:00
Bas
fc0ee6801b Merge pull request #8 from tenplus1/patch-1
Fix crash glitch with vine registry
2017-01-06 10:40:07 +01:00
Diego Martínez
7c68355f23 Prevent two separate instances of stack overflow.
The first one happens because `remove_node` is called
directly, calling `remove_node` for the vine below,
calling `remove_node` for the vine below, calling...

The second one happens because `get_item_group`
returns 0 for groups not set, and 0 is a truthy
value in Lua, so the code always removes the bottom
node regardless of its group rating. This interacted
funnily with doors wanting to remove their top node,
while vines wanted to remove their bottom nodes.
2017-01-06 06:05:40 -03:00
tenplus1
400f6b856c Fix crash glitch with vine registry
This simple change stops vines and roots from crashing client/servers by not making them buildable to.
2017-01-04 19:11:41 +00:00
DonBatman
f5e528ef69 Fixed deprciated
tile_images to tiles
maxwear to uses = 60
Made fuction override local
2016-05-17 12:41:23 -07:00
Vanessa Ezekowitz
6937651e8f follow renaming of plants_lib --> biome_lib 2015-08-09 11:12:19 -04:00
bas080
9174ecafa8 Minor fixes
- Duplicate variable instantiation removed

- Define the biome variable and attach the biome argument to it

- Placed comment in relevant location
2015-02-19 22:36:50 +01:00
bas080
498e71672a Replace nodes on servers that use the older vines
- Replace all old vine nodes with air.

- New node names that are also more descriptive of their appearence.
2015-02-16 20:46:24 +01:00
bas080
e973c4df48 Groups for spawning vines
- Easily lets vines spawn on nodes that have the unique vine group name

- Updated README.md that explains the groups spawning feature.

- Made groups variable local to the registration function and not part of the
  namespace
2015-02-13 03:10:15 +01:00
bas080
797286f4d4 API Update + new vine
- Defines biome in the vines_register function. Thus spawning.lua can be
  removed.

- Vines destroy when a nearby( 3x3 ) leave is dug. They do not drop. To gather
  vines one still has to use the shears.

- Soft depends on moretrees. Allows the overriding of the leave nodes. This is
  required for removing th vines when the leaves destruct.

- Registered a new vine named "vines:jungle" Spawns on jungle tree trunks.
  Either on the moretrees jungles and the default jungletree nodes.

- Textures for the jungle vines.
2015-02-13 01:48:47 +01:00
bas080
796961b01a Complete rewrite
A big code update. Some features have changes slightly. The goal of this update
is to improve performance on servers. This is achieved by removing ABMs and
using on_timers instead. The amount of times that on_timer is used is also
minimized. Other features include.

- vine register function that allows the registering of side and bottom vines

- Removing vines remove all vines beneath it.

- New vine named Roots
2015-02-10 07:15:16 +01:00