Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict between SpongeForge and Infernal Expansion #3657

Closed
Rykita opened this issue Mar 23, 2022 · 4 comments
Closed

Conflict between SpongeForge and Infernal Expansion #3657

Rykita opened this issue Mar 23, 2022 · 4 comments
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working

Comments

@Rykita
Copy link

Rykita commented Mar 23, 2022

Affected Product(s)

SpongeForge

Version

1.16.5-36.2.5-8.0.0-RC1100

Operating System

Linux

Java Version

openjdk version "1.8.0_312"

Plugins/Mods

Infernal Expansion

Describe the bug

[22:23:53] [Server thread/FATAL] [mixin/]: Mixin apply failed infernal-expansion.mixins.json:common.MixinPlayerInteractionManager ->
 net.minecraft.server.management.PlayerInteractionManager: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException
  @At("INVOKE") on net/minecraft/server/management/PlayerInteractionManager::IE_firePostRightClickBlockEventServer with priority 1000 cannot
  inject into
  net/minecraft/server/management/PlayerInteractionManager::func_219441_a(Lnet/minecraft/entity/player/ServerPlayerEntity;Lnet/minecraft/world
  /World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/BlockRayTraceResult;)Lnet/minecraft/util/ActionResultType; 
  merged by org.spongepowered.common.mixin.tracker.server.level.ServerPlayerGameModeMixin_Tracker with priority 1102 [PREINJECT Applicator Phase -> 
  infernal-expansion.mixins.json:common.MixinPlayerInteractionManager -> Prepare Injections ->  -> 
  handler$zoo000$IE_firePostRightClickBlockEventServer(Lnet/minecraft/entity/player/ServerPlayerEntity;Lnet/minecraft/world
  /World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/BlockRayTraceResult;
  Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V -> Prepare]

Link to logs

No response

@Rykita Rykita added status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working labels Mar 23, 2022
@zml2008
Copy link
Member

zml2008 commented Mar 23, 2022

For some extra context, this issue is encountered after running a build of #3656, which works around an issue with Infernal Expansion's additions to the MobCategory enum.

The relevant Mixin on IE's side: https://github.com/infernalexp/Infernal-Expansion/blob/8d518702601726506b01dd7624c28cd1725f6736/src/main/java/org/infernalstudios/infernalexp/mixin/common/MixinPlayerInteractionManager.java#L36

On our side:

public InteractionResult useItemOn(final ServerPlayer playerIn, final Level worldIn, final ItemStack stackIn, final InteractionHand handIn, final BlockHitResult blockRaytraceResultIn) {

The injection point IE uses is still present in our overwrite -- would a possible solution be to adjust the priority of our mixin sets to allow IE's injection to occur on top of our overwrite?

@gabizou
Copy link
Member

gabizou commented Mar 24, 2022

Opened a PR to test it out: #3658

Give this build a try: https://github.com/SpongePowered/Sponge/suites/5780075464/artifacts/192657304

@Enterprise12nx01
Copy link

Is there a working spongeforge version for this?

@ImMorpheus
Copy link
Contributor

Hey! You seem to be running an unsupported version (API 8) of SpongeAPI. Support for API 8 ended in October 2023.

API-8 is now end-of-life. We will not be issuing any more API updates for version 8 of our API1

As part of our legacy cleanup we are closing issues relating to API8/1.16


If you wish to move this forward, please try to reproduce the issue on a supported version of Sponge.

Footnotes

  1. https://forums.spongepowered.org/t/sponge-status-update-17th-october-2023/42212#spongeapi-82-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants