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 Update bundle_it.properties (#8411) 2023-03-25 13:52:04 -04:00
assets-raw
src/mindustry Set controller after setting spawnedByCore (fix UnitChangeEvent) (#8428) 2023-03-25 13:55:26 -04:00
build.gradle