Skip to content

Commit

Permalink
fix:[mcfish]User purchases fish pole initialization (#1088)
Browse files Browse the repository at this point in the history
修复用户第一次购买鱼竿的时候初始化错误
  • Loading branch information
vatebur authored Jan 3, 2025
1 parent 696a0ac commit 8fa91a1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugin/mcfish/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,7 @@ func (sql *fishdb) setEquipFor(uid int64) (err error) {
if err != nil {
return err
}
err = sql.db.Find("fishState", &userInfo, "WHERE ID = ?", uid)
if err != nil {
return err
}
_ = sql.db.Find("fishState", &userInfo, "WHERE ID = ?", uid)
userInfo.Equip++
return sql.db.Insert("fishState", &userInfo)
}
Expand Down

0 comments on commit 8fa91a1

Please sign in to comment.