Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.

Fix newlines breaking translation tables

+2 -1
+1 -1
common/src/main/java/net/lerariemann/infinity/block/custom/NotesBlock.java
··· 96 96 97 97 @Override 98 98 public boolean onSyncedBlockEvent(BlockState state, World world, BlockPos pos, int type, int data) { 99 - Instrument[] instruments = (Instrument[]) INSTRUMENT.stream().toArray(); 99 + Instrument[] instruments = INSTRUMENT.getValues().toArray(Instrument[]::new); 100 100 Instrument noteBlockInstrument = instruments[world.random.nextInt(instruments.length-7)]; 101 101 float f; 102 102 if (world.getBlockEntity(pos.down()) instanceof ChromaticBlockEntity e) {
+1
common/src/main/java/net/lerariemann/infinity/util/teleport/PortalCreator.java
··· 362 362 } 363 363 364 364 static void recordIdTranslation(MinecraftServer server, Identifier id, String value) { 365 + value = value.replaceAll("\n", "/n"); 365 366 Path dir = server.getSavePath(WorldSavePath.DATAPACKS); 366 367 String filename = "translation_tables.json"; 367 368 NbtCompound comp = CommonIO.read(dir.resolve(filename));