GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
223 stars 166 forks source link

Fix potential MetaTileEntity NPE when calling a server side method on client #2437

Closed ghzdude closed 1 month ago

ghzdude commented 1 month ago

What

fixes a potential NPE when calling getMinecraftServerInstance() on the client side. notably only affects the world accelerator by default.

Implementation Details

moves the method call into a sided if check so it won't be called on client

Outcome

no more NPE