Skip to content

Commit b9df1bc

Browse files
committed
fix enabling lighting falsey when load for chunks is enabled
1 parent 0db49e7 commit b9df1bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/watchOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const watchOptionsAfterViewerInit = () => {
7575
viewer.world.mesherConfig.enableLighting = !bot.supportFeature('blockStateId') || options.newVersionsLighting;
7676
(viewer.world as WorldRendererThree).rerenderAllChunks()
7777
})
78-
customEvents.on('gameLoaded', () => {
78+
customEvents.on('mineflayerBotCreated', () => {
7979
viewer.world.mesherConfig.enableLighting = !bot.supportFeature('blockStateId') || options.newVersionsLighting
8080
})
8181

0 commit comments

Comments
 (0)