diff options
author | Linnea Gräf <nea@nea.moe> | 2024-05-09 22:12:27 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-05-09 22:12:27 +0200 |
commit | dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c (patch) | |
tree | b51bffce829a14ed1bdccb581acec2dd1838540e /src/main/kotlin/com/dulkirfabric/Registrations.kt | |
parent | 9d2b7bec68f98228acf913f029f0383e4dcff3d7 (diff) | |
download | DulkirMod-Fabric-master.tar.gz DulkirMod-Fabric-master.tar.bz2 DulkirMod-Fabric-master.zip |
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/Registrations.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/Registrations.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/Registrations.kt b/src/main/kotlin/com/dulkirfabric/Registrations.kt index 355abb8..f47182b 100644 --- a/src/main/kotlin/com/dulkirfabric/Registrations.kt +++ b/src/main/kotlin/com/dulkirfabric/Registrations.kt @@ -126,7 +126,12 @@ object Registrations { ModifyCommandEvent(command).also { it.post() }.command } - WorldRenderEvents.END.register { context -> WorldRenderLastEvent(context).post() } + WorldRenderEvents.END.register { context -> + WorldRenderLastEvent( + context, + context.matrixStack()!! // Not null assertion is safe here since this is late enough in rendering + ).post() + } ScreenEvents.BEFORE_INIT.register( ScreenEvents.BeforeInit { client, screen, scaledWidth, scaledHeight -> |