Botania

Botania

133M Downloads

Indirect mana prism lens change not updating mana spreader

bsngardner opened this issue ยท 2 comments

commented

Version Information

Forge version: 1.12.2-14.23.5.2807
Botania version: r1.10-358

Further Information

Steps to reproduce:

  1. Point a spreader with adjacent non-empty mana pool at non-full mana pool
  2. Place a mana prism and a block between the spreader and the target pool, prism first
  3. Point hopper into mana prism
  4. Place Phantom Lens in hopper
  5. It doesn't matter if the prism is adjacent to the spreader or not

What I expected to happen:
I would expect the spreader to update and retest the mana burst, as it does when you place or remove the phantom warp lens manually. With the lens, it should shoot the burst, since the phantom lens will make it expect to reach the pool through the block. Without the lens, the test should fail and the spreader not shoot.

What happened instead:
The mana spreader does not update or attempt the mana burst again.

I've been looking at the code, and while I can follow the spreader mana burst code, I am not familiar enough with forge modding to understand tile entity updates completely. How does the spreader update when the lens is placed manually, but not with the hopper?
(I originally discovered this when trying to swap the lens through a red string container, but with a hopper directly it is the same).
2019-01-30_22 33 44

commented

so to make sure, you're saying if you switch the lens in the prism by hand it works, but if by hopper it doesn't?

commented

Exactly.