The main mistake of a beginner is that you start using all the additional xray 1.18 features immediately after logging on to the server.When you open the GUI there is a possibility of a lag hack and you will need to restart it using the “X” key, also the lag can be deep and you will need to restart the game if you do not see the blocks.This creates a conflict in the core of the hack code You should not use the mod loaders such as “Forge, Rift and Fabric” in conjunction with the Xray 1.18.
Check in the controller settings if there is any action on this key otherwise there will be a conflict and Xray is not activated on this key