Skip to content

Commit e7c2834

Browse files
authored
Release (#444)
2 parents 4ddc14e + 2da6ef5 commit e7c2834

5 files changed

Lines changed: 21 additions & 15 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"esbuild-plugin-polyfill-node": "^0.3.0",
8181
"express": "^4.18.2",
8282
"filesize": "^10.0.12",
83-
"flying-squid": "npm:@zardoy/flying-squid@^0.0.104",
83+
"flying-squid": "npm:@zardoy/flying-squid@^0.0.118",
8484
"framer-motion": "^12.9.2",
8585
"fs-extra": "^11.1.1",
8686
"google-drive-browserfs": "github:zardoy/browserfs#google-drive",

pnpm-lock.yaml

Lines changed: 9 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renderer/viewer/lib/mesher/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ export function getSectionGeometry (sx: number, sy: number, sz: number, world: W
647647
// #endregion
648648

649649
for (const element of model.elements ?? []) {
650-
const ao = model.ao ?? true
650+
const ao = model.ao ?? block.boundingBox !== 'empty'
651651
if (block.transparent) {
652652
const pos = cursor.clone()
653653
delayedRender.push(() => {

renderer/viewer/lib/mesher/world.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class World {
239239
}
240240

241241
shouldMakeAo (block: WorldBlock | null) {
242-
return block?.isCube && !ignoreAoBlocks.includes(block.name)
242+
return block?.isCube && !ignoreAoBlocks.includes(block.name) && block.boundingBox !== 'empty'
243243
}
244244
}
245245

src/controls.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ document.addEventListener('keydown', (e) => {
751751
capture: true,
752752
})
753753

754-
const isFlying = () => (bot.entity as any).flying
754+
const isFlying = () => (bot as any).physicsEngineCtx?.state?.flying ?? false
755755

756756
const startFlying = (sendAbilities = true) => {
757757
if (sendAbilities) {
@@ -783,9 +783,16 @@ const toggleFly = (newState = !isFlying(), sendAbilities?: boolean) => {
783783
} else {
784784
endFlying(sendAbilities)
785785
}
786-
gameAdditionalState.isFlying = isFlying()
787786
}
788787

788+
const physicsFlyingCheck = () => {
789+
bot.on('physicsTick', () => {
790+
gameAdditionalState.isFlying = isFlying()
791+
})
792+
}
793+
794+
customEvents.on('gameLoaded', physicsFlyingCheck)
795+
789796
const selectItem = async () => {
790797
const block = bot.blockAtCursor(5)
791798
if (!block) return

0 commit comments

Comments
 (0)