fix use item model

This commit is contained in:
dy 2023-12-21 16:10:37 +08:00
parent 85ccd8dd90
commit b38fc4f21f

View File

@ -406,10 +406,10 @@ export class UserFun {
if (conf?.cond?.[0] == 'time') { if (conf?.cond?.[0] == 'time') {
let val = conf.cond[1]; let val = conf.cond[1];
if (val == -1 && gud.model[conf.id]) { if (val == -1) {
change = true; change = true;
gud.model[conf.id] = {id: conf.id + '', time: -1}; gud.model[conf.id] = {id: conf.id + '', time: -1};
} else if (!gud.model[conf.id] || gud.model[conf.id].time < G.time) { } else if (gud.model[conf.id].time < G.time) {
change = true; change = true;
gud.model[conf.id] = {id: conf.id + '', time: G.time + val * v}; gud.model[conf.id] = {id: conf.id + '', time: G.time + val * v};
} else { } else {