Anuken / Mindustry

The automation tower defense RTS
https://mindustrygame.github.io
GNU General Public License v3.0
22.83k stars 2.99k forks source link

Fix NPE when payloadDraw `air` #10333

Closed way-zer closed 1 week ago

way-zer commented 1 week ago

One NPE exception via specially constructed maps: BuildPayload.draw NPE with Blocks.air, as Blocks.air is the only block not invoking Block.load BuildPayload.draw -> Building.draw -> block.region is null.


If your pull request is not translation or serverlist-related, read the list of requirements below and check each box: