Fix comment

This commit is contained in:
stratic-dev
2024-04-23 23:38:04 +01:00
parent ebe15bac1f
commit 2c4675ef66

View File

@@ -297,12 +297,9 @@ func makeEventQuest(s *Session, rows *sql.Rows) ([]byte, error) {
WHERE item_type = 9 WHERE item_type = 9
AND item_no = $1 AND item_no = $1
)`, questId).Scan(&amount, &deadline) )`, questId).Scan(&amount, &deadline)
// Check if there are enough stamps to activate the quest, the deadline hasn't passed, and there are no errors
if stamps >= amount && deadline.After(time.Now()) { if stamps >= amount && deadline.After(time.Now()) && err == nil && err2 == nil {
bf.WriteBool(true) bf.WriteBool(true)
} else if err == nil || err2 == nil {
bf.WriteBool(false)
} else { } else {
bf.WriteBool(false) bf.WriteBool(false)