liplum / MultiCrafterLib

A Mindustry mod library provides a multiple-recipe crafter to produce items, fluids, power or even heat for Json and JavaScript mods.
https://liplum.github.io/MultiCrafterLib/
GNU General Public License v3.0
45 stars 10 forks source link

Fixed MultiCrafters power output #23

Closed JojoFR1 closed 1 year ago

JojoFR1 commented 1 year ago

Power now outputs correctly (but it stop when all the power is used and reach 0 in battery, need to have a positive power input/power storage for the block to works) and changed the power bar to show output (might need to find a way to update the bars depending on the current recipe)

It seems like its the ConsumePowerDynamic that fixed everything not sure tho

Added some variable, don't know if they're useful

I used a global import by accident, my IDE is set up like that (I can change if that bother you)

And I don't really know exactly what I did, it's 3 hours of works so I let you read the changes

JojoFR1 commented 1 year ago

I will see later to fix the issue, if anyone find one tell me

Also if you want to use the change, use my fork in your build.gradle:

implementation "com.github.jojofr1:MultiCrafterLib:v1.7.2" or implementation "com.github.jojofr1:MultiCrafterLib:1.7.2"