修复get.order的参数未判空的bug
This commit is contained in:
parent
ef9c8dc667
commit
f1fe75b3ac
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue