aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_gather.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/act_gather.go')
-rw-r--r--internal/game/act_gather.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/act_gather.go b/internal/game/act_gather.go
index 447e23a..a1c87b9 100644
--- a/internal/game/act_gather.go
+++ b/internal/game/act_gather.go
@@ -239,7 +239,7 @@ func (g *Game) advanceGather(sess *net.Session, p *player.Player) {
if xp > 0 {
g.awardSkillXP(sess, p, player.SkillName(cfg.Skill), xp)
}
- g.AccountStore.SaveCharacter(p)
+ g.saveCharacter(p)
msg := drop.SuccessMessage
coloredName := g.itemColorize(sess, itemDef, itemName)
@@ -452,6 +452,6 @@ func (g *Game) checkBirdNest(sess *net.Session, p *player.Player, cfg *behavior.
}
p.SetInvSlot(freeSlot, &player.InventorySlot{ItemID: birdsNestItemID, Quantity: 1})
- g.AccountStore.SaveCharacter(p)
+ g.saveCharacter(p)
sess.WriteLine(fmt.Sprintf("A %s falls out of the tree!", nestName))
}