Merge pull request #354

Fix IllegalArgumentException
This commit is contained in:
Will FP
2024-05-11 16:24:09 +01:00
committed by GitHub

View File

@@ -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)
}
}
}
}