Skip to content

Commit efaffea

Browse files
committed
optional network packages
1 parent b6442f2 commit efaffea

4 files changed

Lines changed: 6 additions & 9 deletions

File tree

build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,7 @@ configurations {
123123

124124
dependencies {
125125
implementation "curse.maven:jei-238222:5846880"
126-
implementation "curse.maven:productivebees-377897:6370406"
127-
implementation "curse.maven:iron-furnaces-237664:5779819"
128-
implementation "curse.maven:just-dire-things-1002348:6369120"
129-
implementation "curse.maven:laserio-626839:5730007"
126+
implementation "curse.maven:refined-storage-243076:6391989"
130127
}
131128

132129
tasks.withType(ProcessResources).configureEach {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ minecraft_version=1.21.1
1818
# as they do not follow standard versioning conventions.
1919
minecraft_version_range=[1.21.1, 1.22)
2020
# The Neo version must agree with the Minecraft version to get a valid artifact
21-
neo_version=21.1.73
21+
neo_version=21.1.173
2222
# The Neo version range can use any version of Neo as bounds
2323
neo_version_range=[21.1.0,)
2424
# The loader version range can only use the major version of FML as bounds
@@ -35,7 +35,7 @@ mod_name=Inventory Tweaks Refoxed
3535
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
3636
mod_license=Apache License, Version 2.0
3737
# The mod version. See https://semver.org/
38-
mod_version=1.21.1-1.2.2
38+
mod_version=1.21.1-1.3.3-pre
3939
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
4040
# This should match the base package used for the mod sources.
4141
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

src/main/java/invtweaks/events/ModEvents.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public static void interModProcess(InterModProcessEvent event) {
1919
InvTweaksConfig.IMS_CONT_OVERRIDES.put(imcMessage.messageSupplier().get().toString(), new ContOverride(InvTweaksConfig.NO_POS_OVERRIDE, InvTweaksConfig.NO_POS_OVERRIDE, ""));
2020
}
2121
}
22-
InvTweaksConfig.setDirty(true);
2322
});
2423
}
2524
}

src/main/java/invtweaks/network/NetworkDispatcher.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ private NetworkDispatcher() {
1616
public static void register(final RegisterPayloadHandlersEvent event) {
1717
final PayloadRegistrar registrar = event.registrar(InvTweaksMod.MODID);
1818

19-
registrar.playToServer(PacketSortInv.TYPE, PacketSortInv.CODEC, (payload, context) -> payload.handle(payload, context));
20-
registrar.playToServer(PacketUpdateConfig.TYPE, PacketUpdateConfig.CODEC, (payload, context) -> payload.handle(payload, context));
19+
registrar.optional()
20+
.playToServer(PacketSortInv.TYPE, PacketSortInv.CODEC, (payload, context) -> payload.handle(payload, context))
21+
.playToServer(PacketUpdateConfig.TYPE, PacketUpdateConfig.CODEC, (payload, context) -> payload.handle(payload, context));
2122
}
2223
}

0 commit comments

Comments
 (0)