Skip to content

Commit

Permalink
Merge pull request #343 from Thunderblade73/patch-7
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidArthurCole authored Dec 23, 2024
2 parents 224eab9 + 1ef5f3d commit 7752d5a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,8 @@ object ChocolateFactoryStrayWarning {
else event.strayHighlight()
}

private fun GuiContainerEvent.getEventChest(): ContainerChest? = try {
private fun GuiContainerEvent.getEventChest(): ContainerChest? =
gui.inventorySlots as? ContainerChest
} catch (e: ClassCastException) {
null
}

private fun GuiContainerEvent.BackgroundDrawnEvent.partyModeHighlight() {
val eventChest = getEventChest() ?: return
Expand Down

0 comments on commit 7752d5a

Please sign in to comment.