Skip to content

Commit

Permalink
Ensure we remove subscribers from the channel when it has been deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Beachman4 committed Jul 10, 2023
1 parent 0cf4931 commit 8c8fd75
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class ChannelHolder(val level: Level) {
channels.remove(channelInfo)

blockEntity?.setChanged()
subscribers.forEach { it.removedFromChannel(channelInfo) }
subscribers.forEach { it.setChanged() }
}
}

0 comments on commit 8c8fd75

Please sign in to comment.