Skip to content

Commit

Permalink
Update Gamepedia wiki links to new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Spongecade committed Sep 28, 2023
1 parent a212a7c commit 8fcc739
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -109,7 +109,7 @@ fn main() {
# Example: print player inventory

This example demonstrates printing out a players inventory and ender chest contents from the [player dat
files](https://minecraft.gamepedia.com/Player.dat_format) found in worlds. We
files](https://minecraft.wiki/w/Player.dat_format) found in worlds. We

- use serde's renaming attribute to have rustfmt conformant field names,
- use lifetimes to save on string allocations, and
Expand Down
2 changes: 1 addition & 1 deletion fastanvil/src/biome.rs
Expand Up @@ -3,7 +3,7 @@
use num_enum::{IntoPrimitive, TryFromPrimitive};
use serde::{Deserialize, Deserializer};

// Values from https://minecraft.gamepedia.com/Java_Edition_data_value#Biomes
// Values from https://minecraft.wiki/w/Java_Edition_data_value#Biomes
#[derive(TryFromPrimitive, IntoPrimitive, Debug, Clone, Copy, Eq, PartialEq)]
#[repr(i32)] // i32 as in corresponding NBT.
pub enum Biome {
Expand Down
2 changes: 1 addition & 1 deletion fastnbt/src/lib.rs
Expand Up @@ -58,7 +58,7 @@
//!
//! This example demonstrates printing out a players inventory and ender chest
//! contents from the [player dat
//! files](https://minecraft.gamepedia.com/Player.dat_format) found in worlds.
//! files](https://minecraft.wiki/w/Player.dat_format) found in worlds.
//!
//! Here we
//! * use serde's renaming attributes to have rustfmt conformant field names,
Expand Down
2 changes: 1 addition & 1 deletion fastnbt/src/stream.rs
Expand Up @@ -175,7 +175,7 @@ pub type Result<T> = std::result::Result<T, Error>;
/// ```
/// ## Finding a heightmap
/// Here we assume we've parsed up until we have entered the `Heightmaps` compound of the
/// [Minecraft Anvil chunk format](https://minecraft.gamepedia.com/Chunk_format). We keep parsing until we find the
/// [Minecraft Anvil chunk format](https://minecraft.wiki/w/Chunk_format). We keep parsing until we find the
/// `WORLD_SURFACE` long array. We avoid entering nested compounds by skipping them if we enter one. We know we have
/// finished with the current compound when we see the `CompoundEnd` value.
///
Expand Down
2 changes: 1 addition & 1 deletion fastnbt/src/test/minecraft_chunk.rs
Expand Up @@ -4,7 +4,7 @@ use serde::Deserialize;

#[test]
fn unit_variant_enum_for_chunk_status() {
// From https://minecraft.gamepedia.com/Chunk_format
// From https://minecraft.wiki/w/Chunk_format
//
// Status: Defines the world generation status of this chunk. It is always
// one of the following: empty, structure_starts, structure_references,
Expand Down

0 comments on commit 8fcc739

Please sign in to comment.