call minetest.get_modpath only once

This commit is contained in:
Vanessa Ezekowitz 2015-08-15 11:53:23 -04:00
parent 95cffaee46
commit e1a5840129
1 changed files with 3 additions and 2 deletions

View File

@ -27,8 +27,9 @@ bushes_classic.bushes_descriptions = {
bushes_classic.spawn_list = {}
dofile(minetest.get_modpath('bushes_classic') .. '/cooking.lua')
dofile(minetest.get_modpath('bushes_classic') .. '/nodes.lua')
local modpath = minetest.get_modpath('bushes_classic')
dofile(modpath..'/cooking.lua')
dofile(modpath..'/nodes.lua')
biome_lib:spawn_on_surfaces({
spawn_delay = 3600,