Fix double initialization of android features registry

This commit is contained in:
DBotThePony 2024-08-27 22:23:50 +07:00
parent 02db21cde9
commit 81079a8565
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 1 additions and 7 deletions

View File

@ -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);

View File

@ -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)