Skip to content

Commit a15ec59

Browse files
committed
Better warning on KSP.log
Also for #60
1 parent 4fc9471 commit a15ec59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Refunding/PartModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private void UpdateResource()
328328

329329
float usedCostFix = Convert.ToSingle(effectiveCostFix);
330330
if (effectiveCostFix > this.costFix)
331-
Log.warn("Your refunding was squashed by `IPartCostModifier` and was mangled to prevent losses ( see https://github.com/net-lisias-ksp/KSP-Recall/issues/60 ). Ideal value:{0} ; hack used instead:{1}", this.costFix, usedCostFix);
331+
Log.warn("Your refunding for {0} was squashed by `IPartCostModifier` and was mangled to prevent losses ( see https://github.com/net-lisias-ksp/KSP-Recall/issues/60 ). Ideal value:{1} ; hack used instead:{2}", this.PartInstanceId, this.costFix, usedCostFix);
332332
field.SetValue(pr, usedCostFix);
333333
}
334334
Log.dbg("After {0} {1} {2} {3}", pr.ToString(), pr.amount, pr.maxAmount, pr.info.unitCost);

0 commit comments

Comments
 (0)