Skip to content

Commit

Permalink
Fixed cross world block breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Jun 23, 2024
1 parent 6a7c55b commit 5425515
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ abstract class MineBlockEffect<T : Any>(id: String) : Effect<T>(id) {
} else {
this.runExempted {
for (block in blocks) {
if (block.world != this.world) {
continue
}

block.setMetadata(ignoreKey, plugin.createMetadataValue(true))
this.breakBlock(block)
block.removeMetadata(ignoreKey, plugin)
Expand Down

0 comments on commit 5425515

Please sign in to comment.