Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

Minerals touching ice deletes the minerals

Open chagaming opened this issue 3 years ago • 1 comments

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

  1. Find minerals touching ice
  2. 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

chagaming avatar Oct 05 '22 15:10 chagaming

Fixed in https://github.com/Regalis11/Barotrauma-development/commit/e24d537024393e2e7b816080bb17d1b0e46ef13d

Regalis11 avatar Oct 05 '22 18:10 Regalis11

Note for testing: you can force minerals to spawn at a destructible level wall like this: image

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);

Regalis11 avatar Oct 19 '22 09:10 Regalis11

Tested, working correctly. Closing.

Rokvach avatar Oct 20 '22 07:10 Rokvach