Skip to content

Commit dd6a36c

Browse files
committed
fix: boss arena
1 parent a8be81f commit dd6a36c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib/cutscene/edit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function editCatcutscene(player: Player, cutscene: Cutscene) {
123123
})
124124

125125
world.beforeEvents.playerLeave.subscribe(event => {
126-
if (event.player.id === player.id) temporary.cleanup()
126+
if (event.player.id === player.id) system.delay(() => temporary.cleanup())
127127
})
128128

129129
function particle(point: Vector3 | undefined, vars: MolangVariableMap) {

src/lib/region/kinds/boss-arena.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export class BossArenaRegion extends RadiusRegion {
66

77
protected readonly saveable = false
88

9+
protected priority = 10
10+
911
protected readonly defaultPermissions: RegionPermissions = {
1012
allowedEntities: 'all',
1113
doorsAndSwitches: true,

0 commit comments

Comments
 (0)