SimplyJetpacks-2 icon indicating copy to clipboard operation
SimplyJetpacks-2 copied to clipboard

Creative Jetpack consumes flux energy and disables itself

Open Uinden opened this issue 5 years ago • 10 comments

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.

Uinden avatar Feb 14 '20 08:02 Uinden

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.

Tomson124 avatar Feb 14 '20 12:02 Tomson124

@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.

Uinden avatar Feb 14 '20 14:02 Uinden

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...

bigcarl35 avatar Feb 14 '20 18:02 bigcarl35

@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

Uinden avatar Feb 15 '20 06:02 Uinden

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.

bigcarl35 avatar Feb 16 '20 11:02 bigcarl35

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.

Tomson124 avatar Feb 17 '20 10:02 Tomson124

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

Syrious avatar Mar 29 '20 16:03 Syrious

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

robotgryphon avatar Apr 21 '20 23:04 robotgryphon

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

ghost avatar May 30 '20 01:05 ghost

@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.

alexgurrola avatar Jul 19 '20 22:07 alexgurrola