mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Fix #696 loot table preview error
This commit is contained in:
@@ -671,8 +671,8 @@ function prepareIntRange(range: any, ctx: LootContext) {
|
||||
if (typeof range === 'number') {
|
||||
range = { min: range, max: range }
|
||||
}
|
||||
const min = computeInt(range.min, ctx)
|
||||
const max = computeInt(range.max, ctx)
|
||||
const min = computeInt(range?.min, ctx)
|
||||
const max = computeInt(range?.max, ctx)
|
||||
return { min, max }
|
||||
}
|
||||
|
||||
|
||||
@@ -556,8 +556,8 @@ function prepareIntRange(range: any, ctx: LootContext) {
|
||||
if (typeof range === 'number') {
|
||||
range = { min: range, max: range }
|
||||
}
|
||||
const min = computeInt(range.min, ctx)
|
||||
const max = computeInt(range.max, ctx)
|
||||
const min = computeInt(range?.min, ctx)
|
||||
const max = computeInt(range?.max, ctx)
|
||||
return { min, max }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user