mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 22:12:16 -08:00
- If a sector had both a launch and landing pad of the same resource, when clicking "Redirect Launch Pads" to make other sectors' launch pads to send theirs to that sector, the prompt would remain enabled due to the disable check not considering self sending that same resource, making it seem it did nothing. Implementation details: - Refactored some variable names and code blocks for easier reading. - Created ``canRedirectExports`` method which determines if the provided sector's launch pads can be redirected to the player's current sector. This method is used in both the button's disabled attribute and during execution of redirecting sectors. Testing details: - Utilized Windows instructions for compilation and running the application; - Used save file from Steam's "v8-beta" branch; - Selected a sector which contained both a launch and landing pad of the same resource. Before the changes, the button would remain enabled after pressing it. After the changes, the button now remains disabled (as all other sectors were already exporting to that sector). |
||
|---|---|---|
| .. | ||
| assets | ||
| assets-raw | ||
| src/mindustry | ||
| build.gradle | ||