mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-03-07 13:48:00 +08:00
Improve error behaviour of //generate
Now it has the same error behaviour as //deform.
This commit is contained in:
parent
93e413c613
commit
cce2111c64
@ -2240,9 +2240,10 @@ protected BaseBlock getMaterial(int x, int y, int z, BaseBlock defaultMaterial)
|
||||
} catch (ExpressionTimeoutException e) {
|
||||
timedOut[0] = timedOut[0] + 1;
|
||||
return null;
|
||||
} catch (RuntimeException e) {
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
LOGGER.warn("Failed to create shape", e);
|
||||
return null;
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user