Files
Mindustry/core/src/mindustry/world
BalaM314 08f63122ba Set controller after setting spawnedByCore (fix UnitChangeEvent) (#8428)
* CoreBlock.playerSpawn: Set spawnedByCore first
* The call to unit.controller() calls player.unit(unit)
* That function fires UnitChangeEvent
* The unit in UnitChangeEvent has spawnedByCore incorrectly set to false
* This caused me to waste an hour of my life while making a plugin

* Might as well improve code readability
2023-03-25 13:55:26 -04:00
..
2023-03-08 13:11:53 -05:00
2023-03-09 05:25:35 -05:00
2023-02-15 08:57:06 -05:00
2022-02-13 16:58:02 -05:00
2020-02-27 10:04:56 -05:00
2020-11-30 10:15:22 -05:00
2021-08-09 09:37:45 -04:00
2021-07-15 20:19:51 -04:00
2022-01-22 16:43:36 -05:00