-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Overseers to destroy EuP2P (Functionality Hard Disabled)
- Loading branch information
1 parent
3777270
commit e7624b9
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/java/com/ghostipedia/cosmiccore/mixin/MAE2GTIntegrationMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters