Fixes #5446 Listening for the same registry event in two different mods fails

Tell the mod event bus not to track phasing for events.

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2019-02-16 16:45:05 -05:00
1 parent 180f16161c
commit 738d54ff4c
5 files changed
+7 -9

No files matched your search

@@ -19,6 +19,7 @@
package net.minecraftforge.common;
import net.minecraftforge.eventbus.api.BusBuilder;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraft.crash.CrashReport;
@@ -42,7 +43,7 @@ public class MinecraftForge
* ORE_GEN_BUS for ore gen events
* EVENT_BUS for everything else
*/
public static final IEventBus EVENT_BUS = IEventBus.create();
public static final IEventBus EVENT_BUS = BusBuilder.builder().build();
static final ForgeInternalHandler INTERNAL_HANDLER = new ForgeInternalHandler();
private static final Logger LOGGER = LogManager.getLogger();