Skip to content

Commit

Permalink
fix two unnecessary reload renderers calls on every island change
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Nov 10, 2024
1 parent 4635349 commit 39a8c52
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ object LavaReplacement {

@SubscribeEvent
fun onIslandChange(event: IslandChangeEvent) {
update()
if (event.newIsland != IslandType.NONE) {
update()
}
}

@SubscribeEvent
Expand Down

0 comments on commit 39a8c52

Please sign in to comment.