-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code now loads grasses on switch to Grass layer
PR 4 ("Debug and refactor grass.js update code") handled loading grasses during microtab switching, but failed to take into account layer switching. As a result, switching away from Grass then back again while having either the grass or golden grass microtabs selected would result in empty grass or golden grass fields. We solve this by storing previous state of layer loadedness, then using that to load the appropriate type of grass during the transition into the Grass layer.
- Loading branch information
Showing
1 changed file
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters