i'm kinda new to this stuff and have zero coding experience, but i think it might have something to do with the shield's lua. maybe if you take the electric shield from the vanilla game and open it on slade you'll be able to find what makes it disappear underwater?