1.20-pre2
This commit is contained in:
parent
8f8de066f6
commit
91df771011
6 changed files with 12 additions and 8 deletions
|
@ -137,7 +137,7 @@ public class RebornCoreCommands {
|
|||
CompletableFuture.supplyAsync(() -> serverChunkManager.getChunk(chunkPosX, chunkPosZ, ChunkStatus.FULL, true), EXECUTOR_SERVICE)
|
||||
.whenComplete((chunk, throwable) -> {
|
||||
int max = (int) Math.pow(size, 2);
|
||||
ctx.getSource().sendFeedback(Text.literal(String.format("Finished generating %d:%d (%d/%d %d%%)", chunk.getPos().x, chunk.getPos().z, completed.getAndIncrement(), max, completed.get() == 0 ? 0 : (int) ((completed.get() * 100.0f) / max))), true);
|
||||
ctx.getSource().sendFeedback(() -> Text.literal(String.format("Finished generating %d:%d (%d/%d %d%%)", chunk.getPos().x, chunk.getPos().z, completed.getAndIncrement(), max, completed.get() == 0 ? 0 : (int) ((completed.get() * 100.0f) / max))), true);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -33,4 +33,6 @@ accessible method net/minecraft/world/gen/foliage/FoliagePlacerType reg
|
|||
accessible method net/minecraft/recipe/RecipeManager getAllOfType (Lnet/minecraft/recipe/RecipeType;)Ljava/util/Map;
|
||||
accessible field net/minecraft/screen/ScreenHandler listeners Ljava/util/List;
|
||||
|
||||
accessible field net/minecraft/structure/pool/StructurePool elements Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
|
||||
accessible field net/minecraft/structure/pool/StructurePool elements Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
|
||||
|
||||
accessible method net/minecraft/block/CropBlock getAgeProperty ()Lnet/minecraft/state/property/IntProperty;
|
Loading…
Add table
Add a link
Reference in a new issue