[Modpack] Food [2.3] [food][food_basic]

snoopy
Member
 
Posts: 34
Joined: Thu Oct 20, 2016 16:49

Re: [Modpack] Food [2.3] [food][food_basic]

by snoopy » Thu Nov 03, 2016 22:50

Presumably, just adding a "local" as local res = name:gsub('%"', '') in file "init.lua" line 101 should fix it?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
function food.strip_name(name)
   res = name:gsub('%"', '')
   if res:sub(1, 1) == ":" then
      res = res:sub(2, #res)
      --table.concat{res:sub(1, 1-1), "", res:sub(1+1)}
   end
   for str in string.gmatch(res, "([^ ]+)") do
      if str ~= " " and str ~= nil then
         res = str
         break
      end
   end
   if not res then
      res = ""
   end
   return res
end
Enjoying Minetest by Neoascetic's and Morn76's builds on Mac OS X 10.11.6 clients with local server and several modifications.
 

User avatar
Andrey01
Member
 
Posts: 431
Joined: Wed Oct 19, 2016 15:18
In-game: Andrey01

Re: [Modpack] Food [2.3] [food][food_basic]

by Andrey01 » Sat Nov 05, 2016 15:29

Food looks like appetizing and tasty!
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Critical error

by Wuzzy » Wed Nov 09, 2016 02:20

food_basic breaks down when both intllib and mod security are enabled. This is because of an outdated intllib boilerplate code, which has a dofile to a directory outside this mod.
See here for the new boilerplate code:
https://github.com/minetest-mods/intllib

You seem to use a very odd boilerplate code for intllib, by the way.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

Previous

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 13 guests

cron