mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +00:00
Swap Listenerlist constructor around. Should fix parent resizing issue?
This commit is contained in:
1 parent
70570a863f
commit
43e3ee1af1
1 file changed
+4
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user