I am working on fixing a seemingly simple bug and finding more and more issues with the code. It reminds me of when the drain pipe snapped, and I tried to put it back together with duct tape until we could properly fix it. The pipe kept leaking because if the tape wasn’t applied evenly, a small wrinkle would let water seep through. Adding more and more duct tape didn’t help much.
Similarly, with this bug, there are fundamental issues. For some reason, the previous developer decided to handle it on the client side. Fine, I’ll keep it on the client side and just fix the bug. However, it appeared not to get fixed on the console side because the console API doesn’t provide the needed functionality. I tried to fake it, but it still didn’t work, possibly because some code is conditionally running only on the PC version. I’m not sure why they did it this way, so I’m trying to read the code to understand. I’m thinking maybe I should rewrite it and implement it as it should be on the server.