Yeah because Clients share some of their RAM shit with the server, you can probably set maxY in the Blocks Constructor too that should work easily and you dont need to call it a ton.
Just make sure the Client Renderer doesnt decide to UNSET it, otherwise you will get the reverse issue, lol.