Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leaftail1880 committed Sep 3, 2024
1 parent 1547fbc commit d26b084
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/lib/region/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const defaultRegionPermissions = (): RegionPermissions => ({
openContainers: true,
trapdoors: true,
pvp: true,
gates: true,
allowedEntities: 'all',
owners: [],
})
Expand Down
5 changes: 1 addition & 4 deletions src/modules/places/anarchy/random-location-in-anarchy.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { system } from '@minecraft/server'
import { dedupe } from 'lib/dedupe'
import { getRandomVectorInCircle, getTopmostSolidBlock } from 'lib/game-utils'
import { createLogger } from 'lib/utils/logger'
import { Anarchy } from 'modules/places/anarchy/anarchy'

const logger = createLogger('wild')

/**
* Tries to find random location in anarhcy zone radius which is not in the ocean. Used for Airdrops and RTP.
*
Expand All @@ -19,7 +16,7 @@ export const randomLocationInAnarchy = dedupe(async function randomLocationInAna
}: {
info?: (info: string) => void
onBlock?: (block: Vector3) => void
}) {
} = {}) {
if (!Anarchy.zone) return
info?.('Поиск случайной локации без воды...')

Expand Down
1 change: 1 addition & 0 deletions src/test/__mocks__/minecraft_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export class System {
}

run(fn: VoidFunction) {
// @ts-ignore
setImmediate(fn)
return 0
}
Expand Down

0 comments on commit d26b084

Please sign in to comment.