Skip to content

Commit

Permalink
Added null check for UpgradeHolder in NovaFluidContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Jan 6, 2022
1 parent 904742a commit 0ac1272
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>xyz.xenondevs</groupId>
<artifactId>Nova</artifactId>
<version>0.7.10</version>
<version>0.7.11</version>

<properties>
<kotlin.version>1.6.10</kotlin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class NovaFluidContainer(

init {
upgradeHolder?.upgradeUpdateHandlers?.add(::handleUpgradeUpdates)
handleUpgradeUpdates()
if (upgradeHolder != null) handleUpgradeUpdates()
}

private fun handleUpgradeUpdates() {
Expand Down

0 comments on commit 0ac1272

Please sign in to comment.