Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 02:50:05 +01:00
Throw, catch, and rethrow our own exception to make sure we're finding the culprit to a possible shaded-FAWE.
Dieser Commit ist enthalten in:
Ursprung
9e8f0e7325
Commit
52fa44516e
@ -232,9 +232,16 @@ public class BlockTypesCache {
|
||||
defaultState = id;
|
||||
}
|
||||
if (values[internalId] != null) {
|
||||
throw new IllegalStateException(String.format(
|
||||
"Invalid duplicate id for %s! Something has gone very wrong. Are " +
|
||||
"any plugins shading FAWE?!", id));
|
||||
// Ugly way of ensuring a stacktrace is printed so we can see the culprit. Rethrow because we still
|
||||
// want to cancel whatever initialised the class.
|
||||
try {
|
||||
throw new IllegalStateException(String.format(
|
||||
"Invalid duplicate id for %s! Something has gone very wrong. Are " +
|
||||
"any plugins shading FAWE?!", id));
|
||||
} catch (IllegalStateException e) {
|
||||
e.printStackTrace();
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
BlockType type = register(defaultState, internalId, stateList, tickList);
|
||||
// Note: Throws IndexOutOfBoundsError if nothing is registered and blocksMap is empty
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren