One hypothesis, without having examined the code for this, is that there are two storage boxes in the same place, and it's inconsistent which one is looted. If this is the case, it's likely caused by issues with the logic in this plugin around adding/removing storage containers.
Merged postOne thing I notice in the code is that if the Reload Storage config option is false, then the 2nd issue mentioned in the following thread can cause storage or turret not to be removed.
https://umod.org/community/mini-copter-options/27094-cant-turn-on-turretThis could happen if multiple boxes are enabled, or if a box and a turret are enabled.
Merged postI was able to reproduce this problem with the following steps.
- Load plugin with
"Large Storage Containers": 1 and "Reload Storage": false configuration options. - Spawn a minicopter (this spawns storage as well).
- Restart server. There are now 2 storage containers in the same exact position.
This happens because the
OnEntitySpawned() hook is called on server restart, and the plugin is coded to always add storage in that hook. Normally plugin authors work around this by checking in that method if it's happening while loading a save (
Rust.Application.isLoadingSave), or by unsubscribing to the hook during
Init() and resubscribing in
OnServerInitialized().