Fix for glitch when doors on Oil Rigs are always open

Supported Games
GameServerKingsGameServerKings

OilRigDoorsFix

Oxide plugin for Rust. Fix for glitch when doors on Oil Rigs are always open.

This plugin is designed to address the issue where the doors in the Oil Rig remain open. No configuration is required; simply install the plugin, and you're good to go.

How to reproduce the glitch

  1. Head to the Oilrig and use a card to open the door (either blue, red, or both). Now execute the command debug.puzzlereset and check if the door closes (it should).

  2. Open the doors with cards, then restart the server while the doors are still open. After the server has loaded, return to the doors you left open and verify if they are still open. If they are, try running debug.puzzlereset (or wait until a locked hackable crate spawns). In all tested environments, these doors will remain open until the next wipe, regardless of server restart, puzzlereset command, timeout, or until someone presses the button inside the room.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.