We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5baf147 commit d026ac9Copy full SHA for d026ac9
1 file changed
src/scripts/Setup.js
@@ -74,7 +74,9 @@ function Setup (game) {
74
.add(game.params, 'chunkdist', 2, 10, 1)
75
.name('Render distance')
76
.onChange(function (val) {
77
- game.distanceBasedFog.updateDistance(val)
+ if (game.distanceBasedFog.visible) {
78
+ game.distanceBasedFog.updateDistance(val)
79
+ }
80
})
81
.listen()
82
gui
0 commit comments