Mindustry/core
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
..
assets
assets-raw
src/mindustry
build.gradle