diff --git a/src/main/java/org/dimdev/jeid/mixin/init/MixinLoader.java b/src/main/java/org/dimdev/jeid/mixin/init/MixinLoader.java index 0a4d9ae..45e04f0 100644 --- a/src/main/java/org/dimdev/jeid/mixin/init/MixinLoader.java +++ b/src/main/java/org/dimdev/jeid/mixin/init/MixinLoader.java @@ -42,7 +42,6 @@ private void beforeConstructingMods(List injectedModContainers, Callback // Add and reload mixin configs Mixins.addConfiguration("mixins.jeid.modsupport.json"); Mixins.addConfiguration("mixins.jeid.twilightforest.json"); - Mixins.addConfiguration("mixins.jeid.dimstack.json"); Proxy mixinProxy = (Proxy) Launch.classLoader.getTransformers().stream().filter(transformer -> transformer instanceof Proxy).findFirst().get(); try { diff --git a/src/main/java/org/dimdev/jeid/mixin/modsupport/dimstack/DimstackPlugin.java b/src/main/java/org/dimdev/jeid/mixin/modsupport/dimstack/DimstackPlugin.java deleted file mode 100644 index fcc83d7..0000000 --- a/src/main/java/org/dimdev/jeid/mixin/modsupport/dimstack/DimstackPlugin.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.dimdev.jeid.mixin.modsupport.dimstack; - -import net.minecraftforge.fml.common.Loader; -import org.spongepowered.asm.lib.tree.ClassNode; -import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin; -import org.spongepowered.asm.mixin.extensibility.IMixinInfo; - -import java.util.List; -import java.util.Set; - -public class DimstackPlugin implements IMixinConfigPlugin { - @Override - public void onLoad(String s) { - - } - - @Override - public String getRefMapperConfig() { - return null; - } - - @Override - public boolean shouldApplyMixin(String s, String s1) { - if (Loader.isModLoaded("dimstack")) return true; - return false; - } - - @Override - public void acceptTargets(Set set, Set set1) { - - } - - @Override - public List getMixins() { - return null; - } - - @Override - public void preApply(String s, ClassNode classNode, String s1, IMixinInfo iMixinInfo) { - - } - - @Override - public void postApply(String s, ClassNode classNode, String s1, IMixinInfo iMixinInfo) { - - } -} diff --git a/src/main/java/org/dimdev/jeid/mixin/modsupport/dimstack/MixinChunkPrimer.java b/src/main/java/org/dimdev/jeid/mixin/modsupport/dimstack/MixinChunkPrimer.java deleted file mode 100644 index 7baa054..0000000 --- a/src/main/java/org/dimdev/jeid/mixin/modsupport/dimstack/MixinChunkPrimer.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.dimdev.jeid.mixin.modsupport.dimstack; - -import net.minecraft.block.state.IBlockState; -import net.minecraft.world.chunk.ChunkPrimer; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; - -@Mixin(value = ChunkPrimer.class, priority = 500) -public class MixinChunkPrimer { - public IBlockState ingnoredBlock; - - @Inject(method = "setBlockState", at = @At(value = "HEAD"), cancellable = true) - private void ignoreBlock(int x, int y, int z, IBlockState state, CallbackInfo ci) { - if (state != null && this.ingnoredBlock == state) ci.cancel(); - } -} diff --git a/src/main/resources/mixins.jeid.dimstack.json b/src/main/resources/mixins.jeid.dimstack.json deleted file mode 100644 index e11d4a5..0000000 --- a/src/main/resources/mixins.jeid.dimstack.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "package": "org.dimdev.jeid.mixin.modsupport.dimstack", - "plugin": "org.dimdev.jeid.mixin.modsupport.dimstack.DimstackPlugin", - "required": true, - "refmap": "mixins.jeid.refmap.json", - "target": "@env(DEFAULT)", - "minVersion": "0.6", - "compatibilityLevel": "JAVA_8", - "mixins": [ - "MixinChunkPrimer" - ], - "client": [], - "injectors": { - "maxShiftBy": 10 - } -} \ No newline at end of file