Create Crafts & Additions

Create Crafts & Additions

51M Downloads

Config for Capacity on Tesla coil is Ignored

Soaryn opened this issue ยท 2 comments

commented

Describe the bug
When trying to set the Tesla coil value for capacity in the config to something like 512, the value is ignored and keeps 4096

To Reproduce
Configure the tesla coil capacity

Additional context

  • Mod version: createaddition-1.19.2-20221215a.jar
  • Forge version: 43.2.1
  • Create version: 0.5.0.g
    image

image

commented

After further investigation, I believe it is taking the charge rate for the capacity.

commented

This is intended behavior:
CAPACITY = Math.max(Config.TESLA_COIL_CAPACITY.get(), CHARGE_RATE)
This is to ensure it is able to charge at the intended rate.

In fact I'm going to update it to include the recipe charge rate too:
CAPACITY = Util.max(Config.TESLA_COIL_CAPACITY.get(), CHARGE_RATE, CHARGE_RATE_RECIPE),