mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-04-06 14:30:42 +08:00
Fix EditSession initialisation without a World (#2435)
This commit is contained in:
parent
98d396f5bf
commit
e7c9e64645
@ -372,6 +372,10 @@ public class EditSession implements Extent, AutoCloseable {
|
||||
*/
|
||||
@Deprecated
|
||||
public void setReorderMode(ReorderMode reorderMode) {
|
||||
if (world == null && reorderMode == ReorderMode.FAST) {
|
||||
// Fast requires a world, for now we can fallback to multi stage, but use "none" in the future.
|
||||
reorderMode = ReorderMode.MULTI_STAGE;
|
||||
}
|
||||
if (reorderMode == ReorderMode.FAST && sideEffectExtent == null) {
|
||||
throw new IllegalArgumentException("An EditSession without a fast mode tried to use it for reordering!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user