Jump to content

BananaPekan

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by BananaPekan

  1. Thank you! that worked!

    59 minutes ago, warjort said:

    That's a pretty esoteric question. 🙂

     

    You have to navigate 2 different changes;

    * The change of name from the old forge mappings to the mojang mappings

    * The change of graphics engine

     

    Here's how you can do it:

    Find where your method is used in vanilla, e.g. in 1.12 with the stable_39 mappings this is SimpleTexture.loadTexture()

    Find the same processing in 1.19 which also happens to be called SimpleTexture.

    Now compare the 1.12 vanilla code with the 1.19 version, so you can determine the modern way to do your processing.

     

    It won't always be as "easy" as this. Sometimes you would have to repeat the process.

    e.g. If you couldn't find SimpleTexture in 1.19, find where SimpleTexture.loadTexture() is called and locate that processing in 1.19

     

    However, in this case, you can already think of something that loads "external images". Minecraft player skins.

    So you can look at and adapt what that does - SkinManager

     

  2. Ok so basically i coded a mod that should play with some packets for custom servers. it should allow to use spigot plugins with some commands on forge to display custom buttons and more.

    but i got an error:

    [22:36:34] [main/WARN] [mixin/]: Reference map 'spigot.conv.mixin-refmap.json' for spigot.conv.mixin.json could not be read. If this is a development environment you can ignore this message
    22:36:35.506
    [22:36:35] [main/FATAL] [mixin/]: Mixin apply failed spigot.conv.mixin.json:NetworkHandlerMixin -> net.minecraft.network.NetworkManager: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @Inject annotation on onSendPacket could not find any targets matching 'sendPacket(Lnet/minecraft/network/IPacket;)V' in net.minecraft.network.NetworkManager. No refMap loaded. [PREINJECT Applicator Phase -> spigot.conv.mixin.json:NetworkHandlerMixin -> Prepare Injections ->  -> handler$zza000$onSendPacket(Lnet/minecraft/network/IPacket;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse]
    22:36:35.506
    org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on onSendPacket could not find any targets matching 'sendPacket(Lnet/minecraft/network/IPacket;)V' in net.minecraft.network.NetworkManager. No refMap loaded. [PREINJECT Applicator Phase -> spigot.conv.mixin.json:NetworkHandlerMixin -> Prepare Injections ->  -> handler$zza000$onSendPacket(Lnet/minecraft/network/IPacket;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse]
    22:36:35.507
    at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.findMethods(InjectionInfo.java:572) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    22:36:35.507
    at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.readAnnotation(InjectionInfo.java:288) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.