Skip to content

Commit

Permalink
Fix book labels
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveMcW committed Jul 25, 2016
1 parent 146bd8c commit 1da2920
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,10 @@ function book_to_file(player, book, filename)
}
end
end

if (book.label) then
blueprint_format.name = book.label
end

local data = BlueprintString.toString(blueprint_format)
filename = fix_filename(player, filename)
game.write_file("blueprint-string/" .. filename .. ".txt", data)
Expand Down

0 comments on commit 1da2920

Please sign in to comment.