Eternal Starlight

Eternal Starlight

5M Downloads

[Bug] The Laser Beam spell can break blocks when it shouldn't be able to

JoshieGemFinder opened this issue ยท 1 comments

commented

The Laser Beam spell (and possibly other ray attack spells) can break blocks both inside vanilla spawn protection and outside the vanilla worldborder.

This is caused by a lack of checks to Level::mayInteract() and Player::blockActionRestricted() (which restrict worldborder and spawn protection respectively) in RayAttack::onFirstHit(). The vanilla implementation of these methods can be found in ServerPlayerGameMode::handleBlockBreakAction().

commented

Sibling issue to #59