Add edit backpacks button to /firm storage
This commit is contained in:
8
src/main/kotlin/util/render/DrawContextExt.kt
Normal file
8
src/main/kotlin/util/render/DrawContextExt.kt
Normal file
@@ -0,0 +1,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
|
||||
}
|
||||
Reference in New Issue
Block a user