diff --git a/src/main/java/com/simibubi/create/compat/Mods.java b/src/main/java/com/simibubi/create/compat/Mods.java index 60a28cdc8..55fe10952 100644 --- a/src/main/java/com/simibubi/create/compat/Mods.java +++ b/src/main/java/com/simibubi/create/compat/Mods.java @@ -14,7 +14,8 @@ public enum Mods { DYNAMICTREES, TCONSTRUCT, CURIOS, - STORAGEDRAWERS; + STORAGEDRAWERS, + XLPACKETS; /** * @return a boolean of whether the mod is loaded or not based on mod id diff --git a/src/main/java/com/simibubi/create/foundation/utility/ContraptionData.java b/src/main/java/com/simibubi/create/foundation/utility/ContraptionData.java index 782afe380..66426bca9 100644 --- a/src/main/java/com/simibubi/create/foundation/utility/ContraptionData.java +++ b/src/main/java/com/simibubi/create/foundation/utility/ContraptionData.java @@ -1,5 +1,6 @@ package com.simibubi.create.foundation.utility; +import com.simibubi.create.compat.Mods; import com.simibubi.create.foundation.config.AllConfigs; import com.simibubi.create.foundation.mixin.accessor.NbtAccounterAccessor; @@ -24,7 +25,7 @@ public class ContraptionData { * {@link ContraptionData#DEFAULT_MAX} is used as the default. * XL Packets expands the size limit to ~2 GB. If the mod is loaded, we take advantage of it and use the higher limit. */ - public static final int PICKUP_MAX = ModList.get().isLoaded("xlpackets") ? EXPANDED_MAX : DEFAULT_MAX; + public static final int PICKUP_MAX = Mods.XLPACKETS.isLoaded() ? EXPANDED_MAX : DEFAULT_MAX; /** * @return true if the given NBT is too large for a contraption to be synced to clients.