Enable the alicorn race

This commit is contained in:
Sollace 2023-10-07 23:48:23 +01:00
parent b3b9cb7e89
commit 646317e663
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -103,8 +103,7 @@ public record Race (Supplier<Composite> compositeSupplier, boolean canCast, Flig
}
public Identifier getId() {
Identifier id = REGISTRY.getId(this);
return id;
return REGISTRY.getId(this);
}
public Text getDisplayName() {
@ -126,10 +125,6 @@ public record Race (Supplier<Composite> compositeSupplier, boolean canCast, Flig
}
public boolean isPermitted(@Nullable PlayerEntity sender) {
if (isOp() && (sender == null || !sender.getAbilities().creativeMode)) {
return false;
}
Set<String> whitelist = Unicopia.getConfig().speciesWhiteList.get();
return isUnset()