mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-28 03:19:14 +00:00
增加BEFORE_CHANGE
This commit is contained in:
@@ -64,8 +64,9 @@ public class FastAsyncWorldEditDelegate extends AbstractDelegateExtent {
|
||||
@Subscribe
|
||||
@SuppressWarnings("unused")
|
||||
public void onEditSessionEvent(EditSessionEvent event) {
|
||||
if (event.getStage() != EditSession.Stage.BEFORE_HISTORY) return;
|
||||
event.setExtent(new FastAsyncWorldEditDelegate(event));
|
||||
if (event.getStage() == EditSession.Stage.BEFORE_HISTORY || event.getStage() == EditSession.Stage.BEFORE_CHANGE) {
|
||||
event.setExtent(new FastAsyncWorldEditDelegate(event));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user