Closed beastyn closed 4 years ago
I cant repro this:
Can you give more specific steps? From a newly spawned world
Just make a party with 10 000 reputation for payment. https://drive.google.com/file/d/1ui_1suHQHsG--u_yFhvReMBFnXtpnR2f/view?usp=sharing
Ah the problem was happening when you switch the type of a payment (I was adding a new payment and that didnt trigger the problem). Found and fixed, thanks!
System.NullReferenceException: Object reference not set to an instance of an object. at Eco.Gameplay.Economy.WorkParties.ReputationPayment.PayUser(Laborer laborer, Single amount) at Eco.Gameplay.Economy.WorkParties.ValuePayment.WorkPerformed(Laborer laborer, Single percentPerformed) at Eco.Gameplay.Economy.WorkParties.WorkParty.<>c__DisplayClass43_0.b__0(Payment x)
at System.Linq.Enumerable.SelectIListIterator
2.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.ToArray() at Eco.Shared.Utils.StringExtensions.TextList(IEnumerable1 e, String sep) at Eco.Gameplay.Economy.WorkParties.WorkParty.OnWorkPerformed(User user, Work work, Single percentDelta, String message) at Eco.Gameplay.Economy.WorkParties.CollectResourcesWork.UpdateWorkDone(User user, Type item, Int32 quantity, String message) at Eco.Gameplay.Utils.ItemTracker.ActionPerformed(GameAction action) at Eco.Gameplay.Economy.WorkParties.CollectResourcesWork.ActionPerformed(GameAction action) at Eco.Shared.Utils.ListExtensions.ForEach[T](IList
1 list, Action1 action) at Eco.Shared.Utils.EnumerableExtensions.ForEach[T](IEnumerable
1 enumeration, Action1 action) at Eco.Gameplay.GameActions.ActionUtil.ActionPerformed(GameAction action) at Eco.Gameplay.GameActions.GameActionManager.TryPerformActions(User user, IEnumerable
1 actions, IEnumerable1 preTests, IEnumerable
1 postEffects) at Eco.Gameplay.GameActions.GameActionManager.TryPerformActions(User user, GameActionPack actionPack, Boolean notify) at Eco.Gameplay.GameActions.GameActionManager.TryPerform(GameActionPack pack, Boolean notify) at Eco.Gameplay.Items.WorkOrder.TryToContributeItemsResult(User user, ItemStack stack, Int32 maxToContribute, Boolean moveAll) at Eco.Gameplay.Items.WorkOrder.TryToContributeItems(Player player, ItemStack stack, Int32 maxToContribute, Boolean moveAll)