terrarium-earth / Common-Storage-Lib

A Cross platform library for transferring and storing fluids, items and energy
MIT License
25 stars 4 forks source link

[Bug]: Cant Implement in Dev Env [Fabric - 1.20.x] #23

Closed xanthian closed 6 months ago

xanthian commented 11 months ago

Bug Description

Mapping target name conflicts detected: METHODs earth/terrarium/botarium/common/fluid/impl/SimpleFluidContainer/[clear, net/minecraft/class_3829/method_5448]()V -> clear

How to Reproduce?

add the following in build.gradle :

repositories { maven { url "https://maven.resourcefulbees.com/repository/maven-public/" } } dependencies { modApi "earth.terrarium:botarium-fabric-1.20:2.1.1" } update gradle and it fails with above error.

Expected Behavior

No response

Version

any 1.20.x

Mod Loader Version

1.20.1 - 0.14.21

Mod Loader

Fabric

Logs or additional context

link to my mod https://github.com/xanthian/variantcraftingtables/tree/1.20

tried adding Botarium from Cursemaven also in case it was a maven related issue.

Im using Yarn mappings. I dont actually want Botarium, but to add Ad Astra support I need it :(

Code of Conduct

xanthian commented 11 months ago

Also, If i put the botarium mod in the run/mods folder it produces the same error.

CodexAdrian commented 11 months ago

This issue wont be fixable until 1.20.2 as it requires a breaking change to my api. You can use official mappings to get around this for now

xanthian commented 7 months ago

Any change on status on this?

CodexAdrian commented 7 months ago

1.20.2 version isnt released yet as Botarium will support Neoforge and there are still breaking changes being made to the capabilities and transfer systems

xanthian commented 7 months ago

Fixed it myself, remapped the method at fault using tinyremapper

tiny    2   0   intermediary    named
c   earth/terrarium/botarium/common/fluid/impl/SimpleFluidContainer earth/terrarium/botarium/common/fluid/impl/SimpleFluidContainer
    m   ()V clear   clear$fixConflict

It doesn't need to break your API.

CodexAdrian commented 6 months ago

Fixed in 1.20.4