Craig Robbins f33d31693e Fix seg fault if popping from empty stack (L-system trees)
See: https://github.com/minetest/minetest/issues/1525

Background
Wuzzy2: If you attempt to spawn a L-system tree with minetest.spawn_tree, you can make Minetest crash if it is attempted to pop an empty stack.

ShadowNinja: This shouldn't cause a segmentation fault, but it should throw a Lua error

Commit Description
This commit throws a Lua error instead of causing a segmentation fault. The server will still "crash" but will include a Lua backtrace.

L-Systems fix randomness
Unless a random seed is provided (via Lua treedef) seed the PRNG with a different seed for each tree
Resolves: https://github.com/minetest/minetest/issues/1469

Fix l-system crash when treedef random_level not set by Lua
2014-08-23 06:40:27 +02:00
..
2014-08-19 22:22:57 +02:00
2014-05-08 13:02:04 -04:00
2014-05-08 13:02:04 -04:00
2014-05-08 13:02:04 -04:00
2014-05-08 13:02:04 -04:00
2014-05-08 13:02:04 -04:00
2013-11-30 13:05:13 -05:00
2014-05-08 13:02:04 -04:00
2013-09-10 18:31:38 +02:00
2013-09-10 18:31:38 +02:00
2014-05-15 19:09:47 -04:00
2014-05-08 13:02:04 -04:00
2014-07-29 22:39:39 -04:00