From 8fa91a13c3ee228e75509feb503cd269a052077b Mon Sep 17 00:00:00 2001 From: vatebur <67186678+vatebur@users.noreply.github.com> Date: Fri, 3 Jan 2025 21:30:50 +0800 Subject: [PATCH] fix:[mcfish]User purchases fish pole initialization (#1088) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复用户第一次购买鱼竿的时候初始化错误 --- plugin/mcfish/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/mcfish/main.go b/plugin/mcfish/main.go index f0650108cf..1b8d6a7887 100644 --- a/plugin/mcfish/main.go +++ b/plugin/mcfish/main.go @@ -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) }