terrarium-earth / Vitalize

Digitally simulate the summoning and killing of mobs!
Other
2 stars 3 forks source link

The Revitalizer won't Consume Energy #5

Open RenZichang opened 1 year ago

RenZichang commented 1 year ago

Minecraft-1.19.2 Fabric-0.14.12 Vitalizer-1.1.1

The machine named Revitalizer only needs energy to start working, but once started it won't consume any energy at all.

asantmier commented 1 year ago

Having the same issue on Forge. From a quick glance, the cause seems to be that the revitalizer is an InsertOnlyEnergyContainer which means the extractEnergy in blockEntity.getEnergyStorage().extractEnergy(blockEntity.getEnergyCost(), false); should be an internalExtract, or the container type should be different (line 146 of common/src/main/java/earth/terrarium/vitalize/blocks/SoulRevitalizerBlockEntity.java).

I've got no experience with this so I could be entirely wrong, but it seems like the bug is really that simple.