Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ jobs:
- run: node scripts/replaceFavicon.mjs ${{ secrets.FAVICON_MAIN }}
# will install + build to .vercel/output/static
- name: Get Release Info
run: pnpx zardoy-release empty --skip-github
run: pnpx zardoy-release empty --skip-github --output-file assets/release.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: releaseInfo
- name: Write Release Info
run: echo '${{ toJson(steps.releaseInfo.outputs) }}' > assets/release.json
- run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --prod
- run: pnpm build-storybook
- name: Copy playground files
Expand Down
5 changes: 5 additions & 0 deletions src/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ const endFlying = (sendAbilities = true) => {
let allowFlying = false

export const onBotCreate = () => {
let wasSpectatorFlying = false
bot._client.on('abilities', ({ flags }) => {
if (flags & 2) { // flying
toggleFly(true, false)
Expand All @@ -649,6 +650,10 @@ export const onBotCreate = () => {
const gamemodeCheck = () => {
if (bot.game.gameMode === 'spectator') {
toggleFly(true, false)
wasSpectatorFlying = true
} else if (wasSpectatorFlying) {
toggleFly(false, false)
wasSpectatorFlying = false
}
}
bot.on('game', () => {
Expand Down
Loading