1 2 3 4 5 6 7 8
package moe.nea.firmament.util.render import org.joml.Matrix4f import net.minecraft.client.gui.DrawContext fun DrawContext.isUntranslatedGuiDrawContext(): Boolean { return (matrices.peek().positionMatrix.properties() and Matrix4f.PROPERTY_IDENTITY.toInt()) != 0 }