Only call randomseed once
This commit is contained in:
parent
d6aabfdddd
commit
e29b567b91
2
init.lua
2
init.lua
@ -6,6 +6,7 @@ if (minetest.get_modpath("intllib")) then
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
math.randomseed(os.time())
|
||||
|
||||
--Register beanstalk nodes
|
||||
minetest.register_node("magicbeans_w:leaves", {
|
||||
@ -132,7 +133,6 @@ for i in ipairs(magicbeans_w_list) do
|
||||
minetest.add_item(pointed_thing.above, {name="magicbeans_w:"..bean})
|
||||
else
|
||||
-- Grow Beanstalk
|
||||
math.randomseed(os.time())
|
||||
local stalk = pointed_thing.above
|
||||
stalk.x = stalk.x - 2
|
||||
stalk.z = stalk.z - 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user