Deprecate string format shorthand.
This commit is contained in:
committed by
abcdefg30
parent
1c2ce0dcc0
commit
65c0cf1065
@@ -34,7 +34,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
{
|
||||
var carryable = target.TraitOrDefault<Carryable>();
|
||||
if (carryable == null)
|
||||
throw new LuaException("Actor '{0}' cannot carry actor '{1}'!".F(Self, target));
|
||||
throw new LuaException($"Actor '{Self}' cannot carry actor '{target}'!");
|
||||
|
||||
Self.QueueActivity(new PickupUnit(Self, target, carryall.Info.BeforeLoadDelay, null));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user