BlockProt

BlockProt

17.2k Downloads

Anvils can fall and loose their protection

spnda opened this issue ยท 2 comments

commented

Protections for anvils are stored by location (like all other blocks). However, anvils have physics and can fall, thus invalidating their previous location. This also becomes an issue with statistics, as the location stored there is also invalidated. I see two options here:

  • Change the protection to the new location (Difficult to code)
  • Prohibit locked anvils from falling (More restrictive, might cost performance)
commented

Should be changed to all the blocks that will fall
Because you can customize whether the block should be locked

commented

I've addressed this by just cancelling any falling that happens. I previously thought this would have a great performance cost, which turned out to be optimised away by the server so it really wasn't an issue in the end.