Psi

Psi

45M Downloads

Spell detonator only works in the upward southeast direction

quat1024 opened this issue ยท 3 comments

commented

Psi r1.1-59, AutoRegLib 1.3-15, Forge 14.23.1.2598

Spell detonators only work on charge spells that are higher in the X or Z coordinate than the caster.

Steps to reproduce:

  1. Make a circle out of Charge spells and stand in the middle. (In this picture, North is facing up.)
    image

  2. Use the Spell Detonator.
    image

commented

Did a couple of tests, the error lies in ItemDetonator.java, line 34. It seems that playerIn.getEntityBoundingBox().expand(32, 32, 32)) is not centered on the player, put uses the player coordinates has origin coordiates. Can't go further in, as I am not a java, or minecraft code expert.

Here's some screenshots of the bug tho

2018-03-30_02 54 57
2018-03-30_02 55 04
2018-03-30_02 55 09
2018-03-30_02 55 16

commented

Its not very clear in the title, but this also includes the y coordinate. Any charge below the player will not detonate either.