aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/accessors/GetRectangle.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/accessors/GetRectangle.kt')
-rw-r--r--src/main/kotlin/util/accessors/GetRectangle.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/util/accessors/GetRectangle.kt b/src/main/kotlin/util/accessors/GetRectangle.kt
index 37acfd9..109de94 100644
--- a/src/main/kotlin/util/accessors/GetRectangle.kt
+++ b/src/main/kotlin/util/accessors/GetRectangle.kt
@@ -3,11 +3,11 @@
package moe.nea.firmament.util.accessors
import me.shedaniel.math.Rectangle
+import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
import moe.nea.firmament.mixins.accessor.AccessorHandledScreen
-import net.minecraft.client.gui.screen.ingame.HandledScreen
-fun HandledScreen<*>.getRectangle(): Rectangle {
- this as AccessorHandledScreen
+fun AbstractContainerScreen<*>.getProperRectangle(): Rectangle {
+ this.castAccessor()
return Rectangle(
getX_Firmament(),
getY_Firmament(),