Skip to content

Commit

Permalink
V2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
parker02311 committed Aug 8, 2024
1 parent 68e8d12 commit bca27b8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
Binary file modified Dev Place.rbxl
Binary file not shown.
2 changes: 1 addition & 1 deletion src/ExportTemplates/BlankSettings.luau
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ return {

-- DO NOT CHANGE
-- THIS IS AUTOMATICALLY GENERATED
PluginVersion = "2.2.1",
PluginVersion = "2.2.2",
-- THIS IS FOR THE CHASSIS PLUGIN AND WILL NOT ALWAYS MATCH THE STUDIO PLUGIN
}
2 changes: 1 addition & 1 deletion src/ExportTemplates/Settings.luau
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@ return {

-- DO NOT CHANGE
-- THIS IS AUTOMATICALLY GENERATED
PluginVersion = "2.2.1",
PluginVersion = "2.2.2",
-- THIS IS FOR THE CHASSIS PLUGIN AND WILL NOT ALWAYS MATCH THE STUDIO PLUGIN
}
2 changes: 1 addition & 1 deletion src/Main.server.luau
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local function getName(name: string)
return name
end

local Plugin_Version = "2.2.1"
local Plugin_Version = "2.2.2"
local Plugin_Name = getName("Emergency Vehicle Creator V2")
local Plugin_Description = "Easily create amazing ELS for emergency vehicles!"
local Plugin_Icon = "http://www.roblox.com/asset/?id=9953243250"
Expand Down
12 changes: 12 additions & 0 deletions src/Utils/settingsConverter.luau
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,18 @@ settingsConverter.converters["2_2_0"] = function(settings: ModuleScript, pluginS
return newSettingsModule
end

settingsConverter.converters["2_2_1"] = function(settings: ModuleScript, pluginSettings: v2_1_0): ModuleScript
local newSettingsModule = pluginRoot.src.ExportTemplates.BlankSettings:Clone()
local originalSource = settings.Source
local source = newSettingsModule.Source

source = originalSource
source = source:gsub('PluginVersion = "2.2.1",', `PluginVersion = "2.2.2",`, 1)

newSettingsModule.Source = source
return newSettingsModule
end

function settingsConverter.convert(settings: ModuleScript)
local pluginSettings = require(settings)
local formattedVersion = pluginSettings.PluginVersion:gsub("%.", "_")
Expand Down

0 comments on commit bca27b8

Please sign in to comment.