Skip to content

Commit

Permalink
fix: fix event listener for destroying plotcraft blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 committed Feb 2, 2025
1 parent 5141e69 commit 9d9addf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/plotcraft/event/Event.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,7 @@ bool registerEventListener() {
}

if (meta && meta->getPermissionTableConst().allowDestroy) return; // 玩家有权限破坏地皮内方块
} else {
ev.cancel(); // 玩家不能破坏地皮边界方块
return;
}

ev.cancel();
});

Expand Down

0 comments on commit 9d9addf

Please sign in to comment.