Skip to content

Commit

Permalink
Drop GTCE support, only support GTCEu. (#6)
Browse files Browse the repository at this point in the history
* Drop GTCE support, only support GTCEu.

* Not in place yet

* Revert gtceu check in default rules

* remove gtce mixins

* upadte gitignore

* provide bansoukou files for gtce

* fix gtceu dep name

Co-authored-by: brachy84
  • Loading branch information
Caedis authored Jul 16, 2022
1 parent 8c4206f commit 43006b9
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 156 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ build
# other
eclipse
run

.shelf
logs
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ dependencies {
provided 'curse.maven:ae2_extended_life-570458:3811277'
provided 'curse.maven:ender_io-64578:3328811'
provided 'curse.maven:draconic_evolution-223565:3431261'
provided 'curse.maven:gregtechce-293327:3478805'
provided 'curse.maven:gregtech_ce_unofficial-557242:3859788'
provided 'curse.maven:future_mc-310059:3842790'
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/cleanroommc/bogosorter/LateMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public class LateMixin implements ILateMixinLoader {

public static final List<String> modMixins = ImmutableList.of("ironchest", "thermalexpansion", "enderio", "gregtechce");
public static final List<String> modMixins = ImmutableList.of("ironchest", "thermalexpansion", "enderio", "gregtechceu");

@Override
public List<String> getMixinConfigs() {
Expand All @@ -23,8 +23,8 @@ public boolean shouldMixinConfigQueue(String mixinConfig) {
}

public boolean shouldEnableModMixin(String mod) {
if ("gregtechce".equals(mod)) {
return BogoSorter.isGTCELoaded();
if ("gregtechceu".equals(mod)) {
return BogoSorter.isGTCEuLoaded();
}
return Loader.isModLoaded(mod);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.cleanroommc.bogosorter.common.sort;

import com.cleanroommc.bogosorter.BogoSorter;
import com.cleanroommc.bogosorter.api.IBogoSortAPI;
import com.cleanroommc.bogosorter.api.SortType;
import net.minecraft.nbt.NBTBase;
Expand Down Expand Up @@ -29,6 +30,7 @@ public static void init(IBogoSortAPI api) {
api.registerNbtSortingRule("enchantment_book", "StoredEnchantments", Constants.NBT.TAG_LIST, ItemCompareHelper::compareEnchantments, nbtBase -> (NBTTagList) nbtBase);
if (Loader.isModLoaded("gregtech")) {
api.registerNbtSortingRule("gt_circ_config", "Configuration", Constants.NBT.TAG_INT);
api.registerNbtSortingRule("gt_item_damage", "GT.ToolStats/Dmg", Constants.NBT.TAG_INT);
}
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"package": "com.cleanroommc.bogosorter.mixin.gtce",
"package": "com.cleanroommc.bogosorter.mixin.gtceu",
"refmap": "mixins.bogosorter.refmap.json",
"target": "@env(DEFAULT)",
"minVersion": "0.8",
"compatibilityLevel": "JAVA_8",
"mixins": [
"MixinChest",
"MixinModularUI",
"MixinModularUIContainer"
]
}

0 comments on commit 43006b9

Please sign in to comment.