[BUG] Penetration damage stored by position, not block
Mushguys opened this issue ยท 1 comments
Describe the bug
Penetration damage is stored by position, not by block.
If you break a damaged block, then replace it, the new block will be damaged.
If you move a damaged block with a piston, the block will stop being damaged (but the piston head will be damaged).
To Reproduce
Steps to reproduce the behavior:
- Damage a block (I used the machinegun)
- Break the block.
- Replace the block.
- The block is damaged.
Expected behavior
If you break a block, the penetration damage should be removed from that position.
If you move a block, the penetration damage should move with it.
Or, the penetration damage could be stored on the block somehow.
Environment
- OS: Linux Debian 10
- Minecraft version: 1.12.2
- Forge version: 14.23.5.2847
- Immersive Intelligence version: 0.1.1
- Immersive Engineering version: 0.12-89