修复get.order的参数未判空的bug

This commit is contained in:
Spmario233 2024-02-06 13:39:48 +08:00
parent ef9c8dc667
commit f1fe75b3ac
1 changed files with 1 additions and 1 deletions

View File

@ -4208,7 +4208,7 @@ export class Get extends Uninstantable {
/**
* @returns { number }
*/
static order(item, player) {
static order(item, player = get.player() || game.me) {
let cache = CacheContext.requireCacheContext();
var info = get.info(item);
if (!info) return -1;