Spell detonator only works in the upward southeast direction
quat1024 opened this issue ยท 3 comments
E X P A N D
https://github.com/Vazkii/Psi/blob/0954426ec0aad4111102d586fb957fe496b9f697/src/main/java/vazkii/psi/common/spell/operator/entity/PieceOperatorFocusedEntity.java
https://github.com/Vazkii/Psi/blob/88a0df68abac0ce472d07aa5f8339a2b5192867f/src/main/java/vazkii/psi/common/entity/EntitySpellMine.java
https://github.com/Vazkii/Psi/blob/9c4f1754706f4ada16eb42eafe699206924b184a/src/main/java/vazkii/psi/common/item/ItemDetonator.java
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