Items will fall to the floor when two players put things into the same container at same time
Still valid in autumn-update 4e5adfea
Easy to reproduce alone by using simulatedlatency 100 100 with two clients on top of each other and quickly tabbing to repeat the double click. Setting simulatedlatency 0 0 immediately after this prevents a possible disconnect from occurring.
If the fix is to fill the next adjacent free slot with the item, we should consider what to do when only one slot is available as well. Should the item then go back to the inventory or drop on the floor?
Discussed in https://github.com/FakeFishGames/Barotrauma/discussions/14853
Originally posted by A2ur3 October 18, 2024
Disclaimers
- [X] I have searched the issue tracker to check if the issue has already been reported.
- [X] My issue happened while using mods.
What happened?
if two players put items into the same container (steel cabinet, deconstructor...) at same time only one of player can successfully put items. Items put by another player will fall to the floor
Reproduction steps
- start a multiplayer game
- make two players put items into same cabinet/deconstructor
- items fall to the floor
Bug prevalence
Happens every time I play
Single player or multiplayer?
Multiplayer hosted from the in-game menu (= using a listen server)
-
No response
Version
v1.5.9.2 (Summer Update Hotfix 2)
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
No response