Skip to content

Commit bef4fdd

Browse files
authored
Delete overkill mixin registration system (#44)
1 parent 4a06c8f commit bef4fdd

5 files changed

Lines changed: 17 additions & 209 deletions

File tree

dependencies.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Add your dependencies here
22

33
dependencies {
4-
api("com.github.GTNewHorizons:GTNHLib:0.6.31:dev")
5-
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.56-GTNH:dev")
4+
api("com.github.GTNewHorizons:GTNHLib:0.6.37:dev")
5+
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.62-GTNH:dev")
66

77
testImplementation(platform('org.junit:junit-bom:5.9.2'))
88
testImplementation('org.junit.jupiter:junit-jupiter')

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ modrinthProjectId =
151151
# type can be one of [project, version],
152152
# and the name is the Modrinth project or version slug/id of the other mod.
153153
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
154-
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
154+
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
155155
modrinthRelations =
156156

157157
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pluginManagement {
1717
}
1818

1919
plugins {
20-
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.38'
20+
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.40'
2121
}
2222

2323

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,20 @@
11
package com.gtnewhorizon.structurelib.core;
22

3+
import java.util.Arrays;
34
import java.util.List;
45
import java.util.Map;
56
import java.util.Set;
67

7-
import org.apache.logging.log4j.LogManager;
8-
import org.apache.logging.log4j.Logger;
9-
108
import com.gtnewhorizon.gtnhmixins.IEarlyMixinLoader;
11-
import com.gtnewhorizon.structurelib.mixins.Mixins;
129

1310
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
1411

12+
@IFMLLoadingPlugin.MCVersion("1.7.10")
1513
public class StructureLibCore implements IFMLLoadingPlugin, IEarlyMixinLoader {
1614

17-
public static final Logger log = LogManager.getLogger("StructureLibCore");
18-
19-
@Override
20-
public String getMixinConfig() {
21-
return "mixins.structurelib.early.json";
22-
}
23-
24-
@Override
25-
public List<String> getMixins(Set<String> loadedCoreMods) {
26-
return Mixins.getEarlyMixins(loadedCoreMods);
27-
}
28-
2915
@Override
3016
public String[] getASMTransformerClass() {
31-
return new String[0];
17+
return null;
3218
}
3319

3420
@Override
@@ -50,4 +36,14 @@ public void injectData(Map<String, Object> data) {
5036
public String getAccessTransformerClass() {
5137
return null;
5238
}
39+
40+
@Override
41+
public String getMixinConfig() {
42+
return "mixins.structurelib.early.json";
43+
}
44+
45+
@Override
46+
public List<String> getMixins(Set<String> loadedCoreMods) {
47+
return Arrays.asList("blockChangeNotifier.MixinForgeHooks", "blockChangeNotifier.MixinWorld");
48+
}
5349
}

src/main/java/com/gtnewhorizon/structurelib/mixins/Mixins.java

Lines changed: 0 additions & 188 deletions
This file was deleted.

0 commit comments

Comments
 (0)