Remove a null check in SnowyScreen

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2023-04-28 16:37:25 +02:00
parent 24c99cd79e
commit 65d8aa75ee
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 5 deletions

View File

@ -6,11 +6,9 @@ import net.minecraft.network.chat.Component.translatable
abstract class SnowyScreen(translatableString: String = "screen.snowy.gui", private val willPauseScreen: Boolean = false): Screen(translatable(translatableString)) {
abstract val components: MutableCollection<Element>
override fun render(poseStack: PoseStack?, i: Int, j: Int, f: Float) {
if (poseStack != null) {
components.forEach {
it.display(poseStack)
}
override fun render(poseStack: PoseStack, i: Int, j: Int, f: Float) {
components.forEach {
it.display(poseStack)
}
}
override fun isPauseScreen(): Boolean = willPauseScreen