[Bug] Dedi server, changing infinite charge block causes it to always be infinite charge (no matter the block underneath)
grundyboy34 opened this issue ยท 2 comments
Steps to reproduce (on dedicated server):
- Change infinite charge block to "minecraft:lodestone"
- Set respawn to an obelisk with any block underneath
- Die
- Notice that obelisk charge doesn't reduce unlike when the block is set to minecraft:beacon
Fix (made this change locally and built to verify it works. Not making a PR because I have other changes that may not be wanted though):
Edit line 53 of common/src/main/java/com/redpxnda/respawnobelisk/data/listener/ObeliskInteraction.java to:
boolean isInfinite = be.getLevel().getBlockState(be.getBlockPos().below()).is(block)