RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

tilebuildoverlay sprite missing "_south" suffix

Open NickPowers43 opened this issue 10 years ago • 2 comments

After trying to use the tile building tool an exception is thrown inside AlignTileAny.Update. Client.Services.Placement.GetDirectionalSprite(string baseSprite) is being used to get the UI sprites but the problem is the UI sprites dont have a direction. In my case the sprite that was trying to be accessed is "tilebuildoverlay_south" which should just be "tilebuildoverlay".

NickPowers43 avatar Apr 26 '16 18:04 NickPowers43

Should the sprite be renamed with a "_south" suffix or should I define a GetSprite function next to GetDirectionalSprite and use it instead?

NickPowers43 avatar Apr 26 '16 18:04 NickPowers43

I created a pull request that fixes this issue on my end.

NickPowers43 avatar Apr 26 '16 20:04 NickPowers43