Skip to content

Commit b6154c6

Browse files
committed
fix linting
1 parent b05ba76 commit b6154c6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/plugins/physics.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ const PHYSICS_TIMESTEP = PHYSICS_INTERVAL_MS / 1000 // 0.05
1717
function inject (bot, { physicsEnabled, maxCatchupTicks }) {
1818
const PHYSICS_CATCHUP_TICKS = maxCatchupTicks ?? 4
1919
const world = {
20-
getBlock: (pos) => {
21-
if (typeof bot.blockAt === 'function') {
22-
return bot.blockAt(pos, false)
20+
getBlock: (pos) => {
21+
if (typeof bot.blockAt === 'function') {
22+
return bot.blockAt(pos, false)
23+
}
24+
// if blocks plugin is unloaded, return a minimal air block object
25+
return { name: 'air', type: 0, boundingBox: 'empty', shapes: [], position: pos }
2326
}
24-
// if blocks plugin is unloaded, return a minimal air block object
25-
return { name: 'air', type: 0, boundingBox: 'empty', shapes: [], position: pos }
2627
}
27-
}
2828
const physics = Physics(bot.registry, world)
2929

3030
const positionUpdateSentEveryTick = bot.supportFeature('positionUpdateSentEveryTick')

0 commit comments

Comments
 (0)