Barotrauma
Barotrauma copied to clipboard
Minerals touching ice deletes the minerals
Disclaimers
- [X] I have searched the issue tracker to check if the issue has already been reported.
- [ ] My issue happened while using mods.
What happened?
Minerals that touch the ice when it is broken will be deleted but still appear on mineral scanners.
Reproduction steps
- Find minerals touching ice
- break the ice
Bug prevalence
Happens every now and then
Version
0.19.10.0
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
No response
Fixed in https://github.com/Regalis11/Barotrauma-development/commit/e24d537024393e2e7b816080bb17d1b0e46ef13d
Note for testing: you can force minerals to spawn at a destructible level wall like this:

location.Cell = ExtraWalls.Where(w => w.Cells.Any(c => c.IsDestructible)).GetRandomUnsynced().Cells.First();
location.Edge = location.Cell.Edges.GetRandomUnsynced();
item.Move(edgeNormal * moveAmount + location.Cell.Translation, ignoreContacts: true);
Tested, working correctly. Closing.