Ensure compiled is actually set to true in BlockBucket

This commit is contained in:
dordsor21 2022-06-09 17:25:55 +01:00
parent 1b08fc5419
commit 84c9bb0d92
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -126,6 +126,7 @@ public final class BlockBucket implements ConfigurationSerializable {
if (string.isEmpty()) {
this.single = null;
this.pattern = null;
this.compiled = true;
return;
}
// Convert legacy format
@ -146,6 +147,7 @@ public final class BlockBucket implements ConfigurationSerializable {
}
this.single = BlockUtil.get(string);
this.pattern = new BlockPattern(single);
this.compiled = true;
return;
} catch (Exception ignore) {
}