mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +01:00
Fix build
This commit is contained in:
parent
b3be98f664
commit
a266253d53
2 changed files with 5 additions and 3 deletions
|
@ -94,11 +94,13 @@ public class CustomEventCriterion extends AbstractCriterion<CustomEventCriterion
|
||||||
public JsonObject toJson(AdvancementEntityPredicateSerializer serializer) {
|
public JsonObject toJson(AdvancementEntityPredicateSerializer serializer) {
|
||||||
JsonObject json = super.toJson(serializer);
|
JsonObject json = super.toJson(serializer);
|
||||||
json.addProperty("event", event);
|
json.addProperty("event", event);
|
||||||
|
if (!races.isEmpty()) {
|
||||||
json.add("race", races.toJson());
|
json.add("race", races.toJson());
|
||||||
|
}
|
||||||
if (flying != null) {
|
if (flying != null) {
|
||||||
json.addProperty("flying", flying);
|
json.addProperty("flying", flying);
|
||||||
}
|
}
|
||||||
if (repeatCount > 0) {
|
if (repeatCount > 1) {
|
||||||
json.addProperty("repeats", repeatCount);
|
json.addProperty("repeats", repeatCount);
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class AdvancementDisplayBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdvancementDisplayBuilder parent(Identifier parent) {
|
public AdvancementDisplayBuilder parent(Identifier parent) {
|
||||||
advancementBuilder.parent(parent);
|
advancementBuilder.parent(Advancement.Builder.createUntelemetered().build(parent));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue