|
5 | 5 | import net.fabricmc.fabric.api.gamerule.v1.GameRuleFactory; |
6 | 6 | import net.fabricmc.fabric.api.gamerule.v1.GameRuleRegistry; |
7 | 7 | import net.fabricmc.fabric.api.resource.ResourceManagerHelper; |
| 8 | +import net.fabricmc.loader.api.FabricLoader; |
| 9 | +import net.fabricmc.loader.impl.FabricLoaderImpl; |
8 | 10 | import net.minecraft.resource.ResourceType; |
9 | 11 | import net.minecraft.util.Identifier; |
10 | 12 | import net.minecraft.world.GameRules; |
@@ -40,14 +42,22 @@ public class SimpleTrims implements ModInitializer { |
40 | 42 | "can we go much higher (yes, we can)" |
41 | 43 | }; |
42 | 44 |
|
43 | | - public GameRules.Key<GameRules.BooleanRule> SHOULD_PROVIDE_TRIM_POWERS; |
| 45 | + public static GameRules.Key<GameRules.BooleanRule> SHOULD_PROVIDE_TRIM_POWERS; |
| 46 | + |
| 47 | + // mods |
| 48 | + public static boolean hasBetterTrimTooltips; |
44 | 49 |
|
45 | 50 | @Override |
46 | 51 | public void onInitialize() { |
47 | 52 | ResourceManagerHelper.get(ResourceType.SERVER_DATA).registerReloadListener(TRIM_DATA); |
48 | 53 |
|
49 | | - SHOULD_PROVIDE_TRIM_POWERS = // gamerule |
50 | | - GameRuleRegistry.register("shouldSimpleTrimsProvideApoliPowers", GameRules.Category.PLAYER, GameRuleFactory.createBooleanRule(true)); |
| 54 | + //SHOULD_PROVIDE_TRIM_POWERS = // gamerule |
| 55 | + // GameRuleRegistry.register("shouldSimpleTrimsProvideApoliPowers", GameRules.Category.PLAYER, GameRuleFactory.createBooleanRule(true)); |
| 56 | + |
| 57 | + hasBetterTrimTooltips = FabricLoader.getInstance().isModLoaded("better-trim-tooltips"); |
| 58 | + // i think the compat for this is on bettertrimtooltips side, will pr better trim tooltips |
| 59 | + |
| 60 | + |
51 | 61 |
|
52 | 62 | LOGGER.info("{} (initialized simpletrims)", getGoofyMessage()); |
53 | 63 | } |
|
0 commit comments