1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-23 14:02:18 +00:00

Move Create integration setup to its proper place

Merge conflict gone wrong, I assume.
This commit is contained in:
Jonathan Coates 2025-06-30 22:53:15 +01:00
parent fbf994e803
commit 5fa724ed24
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -125,12 +125,12 @@ public class ComputerCraft {
ComputerCraftAPI.registerGenericSource(new InventoryMethods());
Peripherals.addGenericLookup(InventoryMethods::extractContainer);
if (FabricLoader.getInstance().isModLoaded(CreateIntegration.ID)) CreateIntegration.setup();
}
private static <B extends FriendlyByteBuf, T extends CustomPacketPayload> void registerPayloadType(PayloadTypeRegistry<B> registry, CustomPacketPayload.TypeAndCodec<B, T> type) {
registry.register(type.type(), type.codec());
if (FabricLoader.getInstance().isModLoaded(CreateIntegration.ID)) CreateIntegration.setup();
}
private record ReloadListener(String name, PreparableReloadListener listener)