geforkt von Mirrors/FastAsyncWorldEdit
fix: processorExtent can be null when setting masks too
- fixes #2379
Dieser Commit ist enthalten in:
Ursprung
2f6de996e3
Commit
48be6ac94b
@ -631,10 +631,12 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
|||||||
}
|
}
|
||||||
MaskingExtent maskingExtent = new ExtentTraverser<>(getExtent()).findAndGet(MaskingExtent.class);
|
MaskingExtent maskingExtent = new ExtentTraverser<>(getExtent()).findAndGet(MaskingExtent.class);
|
||||||
if (maskingExtent == null && mask != Masks.alwaysTrue()) {
|
if (maskingExtent == null && mask != Masks.alwaysTrue()) {
|
||||||
ExtentTraverser<ExtentBatchProcessorHolder> processorExtent =
|
ExtentBatchProcessorHolder processorExtent =
|
||||||
new ExtentTraverser<>(getExtent()).find(ExtentBatchProcessorHolder.class);
|
new ExtentTraverser<>(getExtent()).findAndGet(ExtentBatchProcessorHolder.class);
|
||||||
maskingExtent =
|
if (processorExtent != null) {
|
||||||
new ProcessorTraverser<>(processorExtent.get().getProcessor()).find(MaskingExtent.class);
|
maskingExtent =
|
||||||
|
new ProcessorTraverser<>(processorExtent.getProcessor()).find(MaskingExtent.class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (maskingExtent != null) {
|
if (maskingExtent != null) {
|
||||||
Mask oldMask = maskingExtent.getMask();
|
Mask oldMask = maskingExtent.getMask();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren