age-series / ElectricalAge

Electrical Age (ELN) is a Minecraft Mod offering the ability to perform large-scale in-game electrical simulations.
Other
69 stars 32 forks source link

Fix calling OpenGL code on Netty thread #309

Closed asiekierka closed 11 months ago

asiekierka commented 11 months ago

Fixes #308 . OpenGL in Minecraft is only guaranteed to have a context active on the main thread, not on the networking thread.

The method to queue code on the main thread was named on 1.8, but it was here in 1.7 too.

jrddunbr commented 11 months ago

Appreciate the PR. I will test this today and probably merge it before the final release version in the 1.21.x branch - 1.21.9 stable.

We are planning to start work on breaking changes in the 1.22.x branch today for the poles and conduits update.