Remove a null check in SnowyScreen
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
24c99cd79e
commit
65d8aa75ee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue