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