Respawn Obelisks

Respawn Obelisks

7.6k Downloads

[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

commented

Steps to reproduce (on dedicated server):

  1. Change infinite charge block to "minecraft:lodestone"
  2. Set respawn to an obelisk with any block underneath
  3. Die
  4. 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)

commented

Thanks so much, I'll try to fix this later today!

commented

Fixed in 2.4