mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Enable the alicorn race
This commit is contained in:
parent
b3b9cb7e89
commit
646317e663
1 changed files with 1 additions and 6 deletions
|
@ -103,8 +103,7 @@ public record Race (Supplier<Composite> compositeSupplier, boolean canCast, Flig
|
||||||
}
|
}
|
||||||
|
|
||||||
public Identifier getId() {
|
public Identifier getId() {
|
||||||
Identifier id = REGISTRY.getId(this);
|
return REGISTRY.getId(this);
|
||||||
return id;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Text getDisplayName() {
|
public Text getDisplayName() {
|
||||||
|
@ -126,10 +125,6 @@ public record Race (Supplier<Composite> compositeSupplier, boolean canCast, Flig
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPermitted(@Nullable PlayerEntity sender) {
|
public boolean isPermitted(@Nullable PlayerEntity sender) {
|
||||||
if (isOp() && (sender == null || !sender.getAbilities().creativeMode)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Set<String> whitelist = Unicopia.getConfig().speciesWhiteList.get();
|
Set<String> whitelist = Unicopia.getConfig().speciesWhiteList.get();
|
||||||
|
|
||||||
return isUnset()
|
return isUnset()
|
||||||
|
|
Loading…
Reference in a new issue