From ca674c2ae5282c3c919ecd88621ed6de11c1e762 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 14 May 2014 14:22:51 -0400 Subject: [PATCH] Swap Listenerlist constructor around. Should fix parent resizing issue? --- .../cpw/mods/fml/common/eventhandler/ListenerList.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fml/src/main/java/cpw/mods/fml/common/eventhandler/ListenerList.java b/fml/src/main/java/cpw/mods/fml/common/eventhandler/ListenerList.java index 1e0b91139..554a320d5 100644 --- a/fml/src/main/java/cpw/mods/fml/common/eventhandler/ListenerList.java +++ b/fml/src/main/java/cpw/mods/fml/common/eventhandler/ListenerList.java @@ -14,14 +14,15 @@ public class ListenerList public ListenerList() { - extendMasterList(this); - resizeLists(maxSize); + this(null); } public ListenerList(ListenerList parent) { - this(); + // parent needs to be set before resize ! this.parent = parent; + extendMasterList(this); + resizeLists(maxSize); } private synchronized static void extendMasterList(ListenerList inst)