Add edit backpacks button to /firm storage

This commit is contained in:
Linnea Gräf
2024-10-16 19:24:24 +02:00
parent 854ec336cc
commit 7de0e8e7e0
11 changed files with 473 additions and 301 deletions

View 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
}