Skip to content

Commit

Permalink
Fix registration to wrong mod event bus
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jun 15, 2024
1 parent b149c0f commit 6e5a207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod_version=1.0.1
minecraft_version=1.20.4
neoforge_version=20.4.160-beta
cyclopscore_version=1.19.0-423
integrateddynamics_version=1.21.2-740
integrateddynamics_version=1.21.2-741
release_type=release
fingerprint=bd0353b3e8a2810d60dd584e256e364bc3bedd44

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent;
import org.cyclops.cyclopscore.config.extendedconfig.BlockEntityConfig;
import org.cyclops.integrateddynamics.IntegratedDynamics;
import org.cyclops.integratedscripting.IntegratedScripting;
import org.cyclops.integratedscripting.RegistryEntries;

Expand All @@ -22,7 +21,7 @@ public BlockEntityScriptingDriveConfig() {
(eConfig) -> new BlockEntityType<>(BlockEntityScriptingDrive::new,
Sets.newHashSet(RegistryEntries.BLOCK_SCRIPTING_DRIVE.get()), null)
);
IntegratedDynamics._instance.getModEventBus().addListener(this::registerCapability);
IntegratedScripting._instance.getModEventBus().addListener(this::registerCapability);
}

protected void registerCapability(RegisterCapabilitiesEvent event) {
Expand Down

0 comments on commit 6e5a207

Please sign in to comment.