Skip to content

Commit 91be7d4

Browse files
committed
Fixed empty map states crashing the game
1 parent 7a2f50d commit 91be7d4

File tree

1 file changed

+1
-0
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/render

1 file changed

+1
-0
lines changed

common/src/main/kotlin/com/lambda/module/modules/render/MapPreview.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ object MapPreview : Module(
4747

4848
override fun drawItems(textRenderer: TextRenderer, x: Int, y: Int, context: DrawContext) {
4949
mapId?.let { id ->
50+
val state = state ?: return
5051
val matrices = context.matrices
5152

5253
matrices.push()

0 commit comments

Comments
 (0)