From 8c8fd753628cea4be81eb41c6d9cd3f643d29727 Mon Sep 17 00:00:00 2001 From: MasterYodA Date: Sun, 9 Jul 2023 19:38:57 -0500 Subject: [PATCH] Ensure we remove subscribers from the channel when it has been deleted --- .../kotlin/com/the9grounds/aeadditions/util/ChannelHolder.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/the9grounds/aeadditions/util/ChannelHolder.kt b/src/main/kotlin/com/the9grounds/aeadditions/util/ChannelHolder.kt index 1a362635..6bcd28e3 100644 --- a/src/main/kotlin/com/the9grounds/aeadditions/util/ChannelHolder.kt +++ b/src/main/kotlin/com/the9grounds/aeadditions/util/ChannelHolder.kt @@ -101,6 +101,7 @@ class ChannelHolder(val level: Level) { channels.remove(channelInfo) blockEntity?.setChanged() + subscribers.forEach { it.removedFromChannel(channelInfo) } subscribers.forEach { it.setChanged() } } } \ No newline at end of file