fix: Fix bug that caused blocks to become disconnected when undoing deletions (#9636)

This commit is contained in:
Aaron Dodson
2026-03-18 10:10:37 -07:00
committed by GitHub
parent 5239bde021
commit 92c73f62c7
+1 -4
View File
@@ -291,10 +291,7 @@ export class Connection {
}
let event;
if (
eventUtils.isEnabled() &&
!childConnection.getSourceBlock().isDeadOrDying()
) {
if (eventUtils.isEnabled()) {
event = new (eventUtils.get(EventType.BLOCK_MOVE))(
childConnection.getSourceBlock(),
) as BlockMove;