Fix double initialization of android features registry
This commit is contained in:
parent
02db21cde9
commit
81079a8565
@ -110,8 +110,6 @@ public final class OverdriveThatMatters {
|
|||||||
|
|
||||||
INSTANCE = this;
|
INSTANCE = this;
|
||||||
|
|
||||||
bus.addListener(MRegistry.INSTANCE::register);
|
|
||||||
|
|
||||||
MBlocks.INSTANCE.register(bus);
|
MBlocks.INSTANCE.register(bus);
|
||||||
MFluids.INSTANCE.register(bus);
|
MFluids.INSTANCE.register(bus);
|
||||||
MBlockEntities.INSTANCE.register(bus);
|
MBlockEntities.INSTANCE.register(bus);
|
||||||
|
@ -102,10 +102,6 @@ object MRegistry : IBlockItemRegistryAcceptor {
|
|||||||
DyeColor.YELLOW,
|
DyeColor.YELLOW,
|
||||||
)
|
)
|
||||||
|
|
||||||
fun register(event: NewRegistryEvent) {
|
|
||||||
features.build(event)
|
|
||||||
}
|
|
||||||
|
|
||||||
private val decorativeBlocks = ArrayList<IBlockItemRegistryAcceptor>()
|
private val decorativeBlocks = ArrayList<IBlockItemRegistryAcceptor>()
|
||||||
|
|
||||||
override fun registerItems(registry: MDeferredRegister<Item>) {
|
override fun registerItems(registry: MDeferredRegister<Item>) {
|
||||||
@ -284,7 +280,7 @@ object MRegistry : IBlockItemRegistryAcceptor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun initialize(bus: IEventBus) {
|
fun initialize(bus: IEventBus) {
|
||||||
bus.addListener(this::register)
|
bus.addListener(features::build)
|
||||||
bus.addListener(this::initializeClient)
|
bus.addListener(this::initializeClient)
|
||||||
bus.addListener(this::initializeCommon)
|
bus.addListener(this::initializeCommon)
|
||||||
bus.addListener(MStats::registerVanilla)
|
bus.addListener(MStats::registerVanilla)
|
||||||
|
Loading…
Reference in New Issue
Block a user