mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 08:26:51 +00:00
Make fixed lists and tuples consistent
This commit is contained in:
@@ -62,7 +62,9 @@ function decorateY(pos: BlockPos, y: number): BlockPos[] {
|
||||
}
|
||||
|
||||
export function sampleInt(value: any, ctx: PlacementContext): number {
|
||||
if (typeof value === 'number') {
|
||||
if (value === undefined) {
|
||||
return 0
|
||||
} else if (typeof value === 'number') {
|
||||
return value
|
||||
} else if (value.base) {
|
||||
return value.base ?? 1 + ctx.nextInt(1 + (value.spread ?? 0))
|
||||
|
||||
Reference in New Issue
Block a user