Merge pull request #2360 from EngineHub/improve-error-behaviour

Improve error behaviour of //generate
This commit is contained in:
TomyLobo 2023-07-15 00:24:31 +02:00 committed by GitHub
commit 1514661d72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
};