Skip to content

Commit

Permalink
Update to MC 1.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Apr 24, 2022
1 parent 57f4ca9 commit 99939aa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
mod_version=1.0.22
minecraft_version=1.18.1
forge_version=39.0.5
cyclopscore_version=1.13.0-123
integrateddynamics_version=1.18.1-1.10.6-185
minecraft_version=1.18.2
forge_version=40.0.54
cyclopscore_version=1.13.4-158
integrateddynamics_version=1.18.2-1.10.13-249
release_type=release
fingerprint=bd0353b3e8a2810d60dd584e256e364bc3bedd44

commoncapabilities_version=1.18.1-2.8.1-46
commoncapabilities_version=1.18.2-2.8.2-54

# Workaround for Spotless bug
# https://github.com/diffplug/spotless/issues/834
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.NewRegistryEvent;
import org.apache.logging.log4j.Level;
import org.cyclops.cyclopscore.config.ConfigHandler;
import org.cyclops.cyclopscore.infobook.IInfoBookRegistry;
Expand Down Expand Up @@ -55,9 +56,10 @@ public IntegratedCrafting() {
registerWorldStorage(globalCounters = new GlobalCounters(this));

FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onRegistriesCreate);
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::afterSetup);
}

public void onRegistriesCreate(RegistryEvent.NewRegistry event) {
public void onRegistriesCreate(NewRegistryEvent event) {
CraftingAspects.load();
PartTypes.load();
MinecraftForge.EVENT_BUS.register(new CraftingNetworkCapabilityConstructors());
Expand All @@ -67,7 +69,9 @@ public void onRegistriesCreate(RegistryEvent.NewRegistry event) {
@Override
protected void setup(FMLCommonSetupEvent event) {
super.setup(event);
}

protected void afterSetup(FMLLoadCompleteEvent event) {
IntegratedDynamics._instance.getRegistryManager().getRegistry(INetworkCraftingHandlerRegistry.class)
.register(new NetworkCraftingHandlerCraftingNetwork());

Expand Down
12 changes: 6 additions & 6 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modLoader="javafml"
loaderVersion="[39,)"
loaderVersion="[40,)"
issueTrackerURL="https://github.com/CyclopsMC/IntegratedCrafting/issues"
displayURL="https://www.curseforge.com/minecraft/mc-mods/integrated-crafting"
license="MIT"
Expand All @@ -16,30 +16,30 @@ Craft stuff in Integrated Dynamics networks.
[[dependencies.integratedcrafting]]
modId="cyclopscore"
mandatory=true
versionRange="[1.13.0,)"
versionRange="[1.13.4,)"
ordering="NONE"
side="BOTH"
[[dependencies.integratedcrafting]]
modId="integrateddynamics"
mandatory=true
versionRange="[1.10.6,)"
versionRange="[1.10.13,)"
ordering="NONE"
side="BOTH"
[[dependencies.integratedcrafting]]
modId="commoncapabilities"
mandatory=true
versionRange="[2.8.1,)"
versionRange="[2.8.2,)"
ordering="NONE"
side="BOTH"
[[dependencies.integratedcrafting]]
modId="forge"
mandatory=true
versionRange="[39,)"
versionRange="[40,)"
ordering="NONE"
side="BOTH"
[[dependencies.integratedcrafting]]
modId="minecraft"
mandatory=true
versionRange="[1.18.1,]"
versionRange="[1.18.2,]"
ordering="NONE"
side="BOTH"
2 changes: 1 addition & 1 deletion src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack": {
"description": "integratedcrafting resources",
"pack_format": 8
"pack_format": 9
}
}

0 comments on commit 99939aa

Please sign in to comment.