Modified to compile against FE 1.12.

Did some small changes to get it to compile against Fabric Engine 1.12.0.