Use get_texturepath() instead of get_gamepath()/../textures
authorNovatux <nathanael.courant@laposte.net>
Fri, 16 Aug 2013 15:37:01 +0000 (17:37 +0200)
committerPilzAdam <pilzadam@minetest.net>
Fri, 16 Aug 2013 15:44:39 +0000 (17:44 +0200)
builtin/mm_textures.lua
builtin/modstore.lua

index 92a58116445da36220841b1c4a5308f834a98d52..02ddf6bcb00cc5d5e8c2b97bc996b5cb04bd3514 100644 (file)
@@ -20,8 +20,7 @@ mm_texture = {}
 
 --------------------------------------------------------------------------------
 function mm_texture.init()
-       mm_texture.defaulttexturedir = engine.get_gamepath() .. DIR_DELIM .. ".." ..
-                                               DIR_DELIM .. "textures" .. DIR_DELIM .. "base" .. 
+       mm_texture.defaulttexturedir = engine.get_texturepath() .. DIR_DELIM .. "base" .. 
                                                DIR_DELIM .. "pack" .. DIR_DELIM
        mm_texture.basetexturedir = mm_texture.defaulttexturedir
        
index e94c174c2113b786b82fa8335098ca849e796c66..90a4c71b5e8146fb74ac22e1cc582990fd2aa302 100644 (file)
@@ -29,8 +29,7 @@ function modstore.init()
        
        modstore.modsperpage = 5
        
-       modstore.basetexturedir = engine.get_gamepath() .. DIR_DELIM .. ".." ..
-                                               DIR_DELIM .. "textures" .. DIR_DELIM .. "base" .. 
+       modstore.basetexturedir = engine.get_texturepath() .. DIR_DELIM .. "base" .. 
                                                DIR_DELIM .. "pack" .. DIR_DELIM
        
        modstore.current_list = nil