Skip to content

Commit

Permalink
Switch to string.format
Browse files Browse the repository at this point in the history
Switch from concat to string.format for AssetPathWithClassPrefix
  • Loading branch information
Okaetsu authored and Buckminsterfullerene02 committed Apr 3, 2024
1 parent d05ab05 commit 4d65ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/Mods/BPModLoaderMod/Scripts/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ RegisterBeginPlayPostHook(function(ContextParam)
local Context = ContextParam:get()
for _,ModConfig in ipairs(OrderedMods) do
if Context:GetClass():GetFName() ~= ModConfig.AssetNameAsFName then return end
local AssetPathWithClassPrefix = "BlueprintGeneratedClass " .. ModConfig.AssetPath .. "." .. ModConfig.AssetName
local AssetPathWithClassPrefix = string.format("BlueprintGeneratedClass %s.%s", ModConfig.AssetPath, ModConfig.AssetName)
if AssetPathWithClassPrefix == Context:GetClass():GetFullName() then
local PostBeginPlay = Context.PostBeginPlay
if PostBeginPlay:IsValid() then
Expand Down

0 comments on commit 4d65ae1

Please sign in to comment.