Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ public class Lootables extends ConfigurationPart {
public Duration refreshMin = Duration.of("12h");
public Duration refreshMax = Duration.of("2d");
public boolean retainUnlootedShulkerBoxLootTableOnNonPlayerBreak = true;

@PostProcess
public void validateRefillRange() throws SerializationException {
if (this.refreshMax.seconds() < this.refreshMin.seconds()) {
throw new SerializationException("lootables.refresh-max (%s) must be greater than or equal to lootables.refresh-min (%s)".formatted(this.refreshMax.value(), this.refreshMin.value()));
}
}
}

public MaxGrowthHeight maxGrowthHeight;
Expand Down