From 188e3a75cc83f5759956d8ba0a45a02e16af3c26 Mon Sep 17 00:00:00 2001 From: PrototypeTrousers Date: Sat, 18 Sep 2021 21:45:03 -0300 Subject: [PATCH] simplify monitor passthrough listener logic --- src/main/java/appeng/me/storage/MEMonitorPassThrough.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/appeng/me/storage/MEMonitorPassThrough.java b/src/main/java/appeng/me/storage/MEMonitorPassThrough.java index 4c189eaf2..70895e01e 100644 --- a/src/main/java/appeng/me/storage/MEMonitorPassThrough.java +++ b/src/main/java/appeng/me/storage/MEMonitorPassThrough.java @@ -72,7 +72,7 @@ public class MEMonitorPassThrough> extends MEPassThrough after = this.getInternal() == null ? this.getWrappedChannel().createList() : this.getInternal() .getAvailableItems( new ItemListIgnoreCrafting( this.getWrappedChannel().createList() ) ); - if( this.monitor != null ) + if( this.monitor != null && this.listeners.size() > 0 ) { this.monitor.addListener( this, this.monitor ); }