Skip to content

Commit

Permalink
Update how the MFM FU version is printed
Browse files Browse the repository at this point in the history
  • Loading branch information
ColonolNutty committed Mar 8, 2018
1 parent 6bdabc7 commit 600539a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .metadata
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"name" : "MoreFarmingFU",
"steamContentId" : "928896807",
"tags" : "Planets and Environments|Food and Farming|Mechanics",
"version" : "v1.1.24"
"version" : "v1.1.25"
}
2 changes: 1 addition & 1 deletion _MFMFUversioning.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author" : "ColonolNutty",
"friendlyName" : "CN More Farming - Frackin' Universe",
"version" : "v1.1.24"
"version" : "v1.1.25"
}
3 changes: 3 additions & 0 deletions player.config.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
{ "op": "add", "path" : "/deploymentConfig/scripts/-", "value" : "/scripts/mfmfu_player_init.lua"}
]
3 changes: 1 addition & 2 deletions recipeCrafterMFM/recipeCrafterMFM.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ local logger = nil;

function init(virtual)
logger = DebugUtilsCN.init("[RCFU]")
RecipeCrafterMFMApi.init("/_MFMFUversioning.config")
RecipeCrafterMFMApi.printMetaData("/_MFMversioning.config")
RecipeCrafterMFMApi.init()

storage.consumeIngredientsOnCraft = false;
storage.noHold = true;
Expand Down
10 changes: 10 additions & 0 deletions scripts/mfmfu_player_init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
local origInit = init;

function init()
origInit();
sb.logInfo("----- MFM player init -----");
local metadata = root.assetJson("/_MFMversioning.config")
if(metadata) then
sb.logInfo("Running with " .. metadata.friendlyName .. " " .. metadata.version)
end
end

0 comments on commit 600539a

Please sign in to comment.