Lythom / capsule

A minecraft mod : Bring your base! Capsules can capture a region containing any blocks or machines, then deploy and undeploy at will. Inspired by Dragon Ball capsules.
MIT License
17 stars 13 forks source link

[1.15] not owned securitycraft blocks can be moved by capsule #35

Closed Lythom closed 3 years ago

Lythom commented 3 years ago

The player should have the permission to break a block to be able to move it with a capsule.

Lythom commented 3 years ago

After qualification of the issue this is related to how securitycraft works, but could also concerned other mods. This is not a regression since protected areas should still prevent capsule capture / spawn.

Not sure yet how I could generically detect if a player can break the block or not other than querying a BlockBreak event. A ticket is open on the securitycraft issue tracker to ask for help https://github.com/Geforce132/SecurityCraft/issues/220

Lythom commented 3 years ago

Fixed by https://github.com/Lythom/capsule/commit/4ff59e75e9a5e638ba5abfa3111693f6e5d113c2