Skip to content

Commit

Permalink
Allow Overseers to destroy EuP2P (Functionality Hard Disabled)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghostipedia committed Dec 9, 2024
1 parent 3777270 commit e7624b9
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ repositories {
maven {
url "https://maven.teamresourceful.com/repository/maven-public/"
}
maven {
name "Modmaven"
url "https://modmaven.dev/"
content {
includeGroup 'appeng'
}
}
maven {
name = 'GTCEu Maven'
url = 'https://maven.gtceu.com'
Expand Down Expand Up @@ -146,7 +153,8 @@ dependencies {
modImplementation("com.lowdragmc.ldlib:ldlib-forge-${project.minecraft_version}:${project.ldlib_version}") { transitive = false }
modImplementation("com.tterrag.registrate:Registrate:${project.registrate_version}")
modImplementation("dev.latvian.mods:kubejs-forge:${project.kubejs_version}")

modImplementation("appeng:appliedenergistics2-forge:15.2.13") { transitive = false }
modImplementation("curse.maven:modern-ae2-additions-1028068:5826205") { transitive = false }
// Ad Astra
forgeRuntimeLibrary("com.teamresourceful:yabn:1.0.3") // Cause architectury is kinda dumb with some java libs
forgeRuntimeLibrary("com.teamresourceful:bytecodecs:1.0.2") // Cause architectury is kinda dumb with some java libs
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.ghostipedia.cosmiccore.mixin;


import appeng.api.parts.PartModels;
import appeng.items.parts.PartItem;
import appeng.items.parts.PartModelsHelper;
import net.minecraft.Util;
import net.minecraft.world.item.Item;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.RegistryObject;
import org.spongepowered.asm.mixin.Debug;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import stone.mae2.integration.GregTechIntegration;
import stone.mae2.core.MAE2Items;
import stone.mae2.integration.GregTechIntegration;
import stone.mae2.parts.p2p.EUP2PTunnelPart;
import stone.mae2.parts.p2p.multi.EUMultiP2PPart;

@Debug(export = true)
@Mixin(value = GregTechIntegration.class, remap = false)
public abstract class MAE2GTIntegrationMixin {
@Inject(method = "init", at = @At(value = "INVOKE", target = "Lnet/minecraftforge/eventbus/api/IEventBus;addListener(Ljava/util/function/Consumer;)V"), cancellable = true, remap = false)
private static void init(IEventBus bus, CallbackInfo callbackInfo) {
callbackInfo.cancel();
}

}
1 change: 1 addition & 0 deletions src/main/resources/cosmiccore.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"AdAstraSpaceSuitItemMixin",
"DivingHelmetItemMixin",
"PlayerBreathingMixin",
"MAE2GTIntegrationMixin",
"accessor.LivingEntityAccessor",
"accessor.LootTableAccessor",
"client.CosmicCoreRemainingAirOverlayMixin"
Expand Down

0 comments on commit e7624b9

Please sign in to comment.