Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Creative Jetpack consumes flux energy and disables itself #148

Open
Uinden opened this issue Feb 14, 2020 · 10 comments
Open

Creative Jetpack consumes flux energy and disables itself #148

Uinden opened this issue Feb 14, 2020 · 10 comments

Comments

@Uinden
Copy link

Uinden commented Feb 14, 2020

I play FTB Sky Odyssey and I made flux network for wireless charging.
Creative Jetpack infinitely consumes all available energy and stops working until I disable wireless charging for Armour Inventory in flux Flux Controller.

@Tomson124
Copy link
Owner

FTB Sky Odessy is using an older version of SJ2. Please try to update SJ2 to its latest version (2.2.14) and see if this fixes the issue, as I did fix a similar issue in 2.2.14.
If this doesn't help, just comment on here again or otherwise close the issue if the bug is fixed.

@Uinden
Copy link
Author

Uinden commented Feb 14, 2020

@Tomson124
Installed latest version, now Jetpack doesn't disable itself, but it still drains all available energy from flux network and keeps it at 0.

@bigcarl35
Copy link

bigcarl35 commented Feb 14, 2020

Have same issue, but have 2 flux networks and it only drains one of them. Very weird. If I shut down minecraft and restart, the draining stops. Afraid to try jetpack again...

@Uinden
Copy link
Author

Uinden commented Feb 15, 2020

@bigcarl35
Open Flux Controller and disable Armour Inventory charging. You will not be able to charge any armor slot item, but it stops jetpack from draining any energy.
1

@bigcarl35
Copy link

I did that plus my server admin swapped my jetpack for another one. That was probably overkill, but jetpack and flux network is working fine now. I'll just do wireless recharging with a different mod.

@Tomson124
Copy link
Owner

It could be the way that Flux Networks is charging the items, I will look into it if I have time. For the time being the way @Uinden did it, is the "official" workaround.

@Syrious
Copy link

Syrious commented Mar 29, 2020

I have the same Problem when using a Flux Capacitor from Thermal Expansion.
The capacitor gets completely drained.

I'm using version 2.2.14.67

@robotgryphon
Copy link

Wouldn't this issue be solved by making a check in the Jetpack item, here?
https://github.com/Tomson124/SimplyJetpacks-2/blob/1.12/src/main/java/tonius/simplyjetpacks/item/ItemJetpack.java#L264

@ghost
Copy link

ghost commented May 30, 2020

Same problem here (MC Eternal), but with flux capacitors from thermal foundation. I'm using dark steel armour, so disabling armour charging isn't really an option. Maybe just disable adding fuel, or clamp the fuel so it can't be negative.

It should be as simple as adding energy MathHelper.clamp(0, Int.Max, energy); (or however you clamp in java) to https://github.com/Tomson124/SimplyJetpacks-2/blob/1.12/src/main/java/tonius/simplyjetpacks/item/ItemJetpack.java#L280

@alexgurrola
Copy link

@Tomson124 NBT Tags also allow using a Long instead of an Int, which could be changed everywhere that you're calling NBTHelper.setInt() and NBTHelper.getInt(). You'd be looking at a max Long of: 9,223,372,036,854,775,807 instead of 2,147,483,647, which is quickly surpassed with any passive armor charging and turns into energy in negative numbers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants