-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # buildSrc/src/main/kotlin/Dependencies.kt # buildSrc/src/main/kotlin/FetchLatestVersionsTask.kt # module-compat/alloy-forgery/src/main/java/lol/bai/megane/module/alloyforgery/mixin/AccessorForgeControllerBlockEntity.java # module-compat/alloy-forgery/src/main/java/lol/bai/megane/module/alloyforgery/provider/ForgeControllerEnergyProvider.java # module-compat/applied-energistics-2/src/main/resources/megane-applied-energistics-2.mixins.json
- Loading branch information
Showing
7 changed files
with
64 additions
and
11 deletions.
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
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
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
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
27 changes: 27 additions & 0 deletions
27
...pplied-energistics-2/src/main/java/lol/bai/megane/module/ae2/mixin/MixinWthitModule1.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,27 @@ | ||
package lol.bai.megane.module.ae2.mixin; | ||
|
||
import appeng.api.integrations.igtooltip.providers.ServerDataProvider; | ||
import appeng.integration.modules.igtooltip.blocks.PowerStorageDataProvider; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Unique; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(targets = "appeng.integration.modules.wthit.WthitModule$1") | ||
public class MixinWthitModule1 { | ||
|
||
@Unique | ||
private static final Logger LOGGER = LoggerFactory.getLogger("MixinWthitModule1"); | ||
|
||
@Inject(method = "addBlockEntityData", at = @At("HEAD"), cancellable = true, remap = false) | ||
private void megane_removePowerTooltip(Class<?> blockEntityClass, ServerDataProvider<?> provider, CallbackInfo ci) { | ||
if (provider instanceof PowerStorageDataProvider) { | ||
LOGGER.info("[megane-applied-energistics-2] Disabled AE2's builtin power tooltip in favor of Megane's"); | ||
ci.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
"defaultRequire": 1 | ||
}, | ||
"mixins" : [ | ||
"MixinPowerStorageDataProvider" | ||
"MixinWthitModule1" | ||
] | ||
} |
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