Skip to content

Commit

Permalink
Merge pull request #354
Browse files Browse the repository at this point in the history
Fix IllegalArgumentException
  • Loading branch information
WillFP committed May 11, 2024
2 parents bff502c + 5941060 commit 08f6715
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ class HologramDecentHolograms : HologramIntegration {
}

override fun setContents(contents: List<String>) {
DHAPI.setHologramLines(DHAPI.getHologram(id), contents)
val hologram = DHAPI.getHologram(id)
if (hologram != null) {
DHAPI.setHologramLines(hologram, contents)
}
}
}
}

0 comments on commit 08f6715

Please sign in to comment.