The bank doesn't store anything anymore. I admit I did not figure out every detail of the code, but new line "(!onlinePlayers.ContainsKey (player))" felt a bit off, so I changed it to (onlinePlayers.ContainsKey (player)) and it did work again.
Since not assigning those values and still calling view.PlayerOpenLoot(player) seems to cause that issue, propably an early return might be a good fix.
currently:
profile.open = true;
if (!onlinePlayers.ContainsKey (player)) {
onlinePlayers [player].View = view;
onlinePlayers [player].Target = target;
}
timer.In (0.1f, delegate () {
view.PlayerOpenLoot (player);
});suggestion:
profile.open = true;
if (!onlinePlayers.ContainsKey (player)) { return;}
onlinePlayers [player].View = view;
onlinePlayers [player].Target = target;
timer.In (0.1f, delegate () {
view.PlayerOpenLoot (player);
});