mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-02-05 09:54:59 +01:00
use Mods enum
This commit is contained in:
parent
41697aca7f
commit
5bf088c436
2 changed files with 4 additions and 2 deletions
|
@ -14,7 +14,8 @@ public enum Mods {
|
||||||
DYNAMICTREES,
|
DYNAMICTREES,
|
||||||
TCONSTRUCT,
|
TCONSTRUCT,
|
||||||
CURIOS,
|
CURIOS,
|
||||||
STORAGEDRAWERS;
|
STORAGEDRAWERS,
|
||||||
|
XLPACKETS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return a boolean of whether the mod is loaded or not based on mod id
|
* @return a boolean of whether the mod is loaded or not based on mod id
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.simibubi.create.foundation.utility;
|
package com.simibubi.create.foundation.utility;
|
||||||
|
|
||||||
|
import com.simibubi.create.compat.Mods;
|
||||||
import com.simibubi.create.foundation.config.AllConfigs;
|
import com.simibubi.create.foundation.config.AllConfigs;
|
||||||
import com.simibubi.create.foundation.mixin.accessor.NbtAccounterAccessor;
|
import com.simibubi.create.foundation.mixin.accessor.NbtAccounterAccessor;
|
||||||
|
|
||||||
|
@ -24,7 +25,7 @@ public class ContraptionData {
|
||||||
* {@link ContraptionData#DEFAULT_MAX} is used as the default.
|
* {@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.
|
* 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.
|
* @return true if the given NBT is too large for a contraption to be synced to clients.
|
||||||
|
|
Loading…
Reference in a new issue