From 0377cbfc2e2a6122cb8e198661ee97b920c566b6 Mon Sep 17 00:00:00 2001 From: Misode Date: Wed, 27 Sep 2023 02:06:15 +0200 Subject: [PATCH] Update Minecraft Wiki links to new domain after fork --- feather/base/src/anvil/block_entity.rs | 2 +- feather/datapacks/src/id.rs | 2 +- feather/old/core/loot/model/src/lib.rs | 2 +- feather/old/definitions/data/tool.ron | 2 +- feather/old/server/commands/src/arguments.rs | 4 ++-- feather/old/server/entity/src/fall_damage.rs | 2 +- feather/old/server/player/src/packet_handlers/digging.rs | 2 +- feather/old/server/util/src/block.rs | 2 +- libcraft/core/src/gamerules.rs | 2 +- libcraft/items/src/enchantment.rs | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/feather/base/src/anvil/block_entity.rs b/feather/base/src/anvil/block_entity.rs index 4174c6184..c301b5d26 100644 --- a/feather/base/src/anvil/block_entity.rs +++ b/feather/base/src/anvil/block_entity.rs @@ -6,7 +6,7 @@ use super::player::InventorySlot; /// A block entity loaded or saved to the Anvil format. /// Should be serialized using NBT. /// -/// +/// #[derive(Debug, Clone, Serialize, Deserialize)] pub struct BlockEntityData { #[serde(flatten)] diff --git a/feather/datapacks/src/id.rs b/feather/datapacks/src/id.rs index e0e9beebb..38339a825 100644 --- a/feather/datapacks/src/id.rs +++ b/feather/datapacks/src/id.rs @@ -7,7 +7,7 @@ use std::{ }; /// A namespaced identifier, also known as a "resource location" -/// in Forge. See . +/// in Forge. See . /// /// Namespaced IDs can be parsed using the `FromStr` implementation, /// and they can be formatted using the `Display` impl or by calling `to_string()`. diff --git a/feather/old/core/loot/model/src/lib.rs b/feather/old/core/loot/model/src/lib.rs index ae99bd32f..e8efbb2a3 100644 --- a/feather/old/core/loot/model/src/lib.rs +++ b/feather/old/core/loot/model/src/lib.rs @@ -22,7 +22,7 @@ impl Default for LootTableSet { } } -/// See https://minecraft.gamepedia.com/Loot_table +/// See https://minecraft.wiki/w/Loot_table #[derive(Debug, Clone, Serialize, Deserialize)] pub struct LootTable { #[serde(rename = "type")] diff --git a/feather/old/definitions/data/tool.ron b/feather/old/definitions/data/tool.ron index 18643179c..56a9303e8 100644 --- a/feather/old/definitions/data/tool.ron +++ b/feather/old/definitions/data/tool.ron @@ -54,7 +54,7 @@ Multiple([ on: "item", name: "durability", type: u32, - // https://minecraft.gamepedia.com/Item_durability + // https://minecraft.wiki/w/Item_durability mapping: { "leather_helmet": 55, "leather_chestplate": 80, diff --git a/feather/old/server/commands/src/arguments.rs b/feather/old/server/commands/src/arguments.rs index e5fccca87..0bce8b17e 100644 --- a/feather/old/server/commands/src/arguments.rs +++ b/feather/old/server/commands/src/arguments.rs @@ -36,7 +36,7 @@ impl ArgumentKind for EntitySelector { fn parse<'a>(ctx: &CommandCtx, input: &mut Input<'a>) -> Result { let head = input.advance_until(" "); - // See https://minecraft.gamepedia.com/Commands#Target_selectors + // See https://minecraft.wiki/w/Commands#Target_selectors let entities = find_selected_entities(ctx, head)?; Ok(EntitySelector { entities }) @@ -168,7 +168,7 @@ pub enum CoordinatesParseError { } /// Parses a position ( , but also with support for relative -/// positions as per https://minecraft.gamepedia.com/Commands#Tilde_and_caret_notation). +/// positions as per https://minecraft.wiki/w/Commands#Tilde_and_caret_notation). #[derive(Copy, Clone, Debug)] pub struct Coordinates { pub x: Coordinate, diff --git a/feather/old/server/entity/src/fall_damage.rs b/feather/old/server/entity/src/fall_damage.rs index 3dfe89fbe..6a142c2dd 100644 --- a/feather/old/server/entity/src/fall_damage.rs +++ b/feather/old/server/entity/src/fall_damage.rs @@ -46,7 +46,7 @@ pub fn update_blocks_fallen(game: &mut Game, world: &mut World) { for entity in landed.into_inner() { let blocks_fallen = world.get::(entity).0; - // https://minecraft.gamepedia.com/Damage#Fall_damage + // https://minecraft.wiki/w/Damage#Fall_damage let damage = (blocks_fallen - 3.0).max(0.0).round() as u32; if damage != 0 { diff --git a/feather/old/server/player/src/packet_handlers/digging.rs b/feather/old/server/player/src/packet_handlers/digging.rs index 93051f075..029f2215f 100644 --- a/feather/old/server/player/src/packet_handlers/digging.rs +++ b/feather/old/server/player/src/packet_handlers/digging.rs @@ -156,7 +156,7 @@ pub fn advance_dig_progress(game: &mut Game, world: &mut World) { world.inner_mut(), |(mut digging, inventory, held_item)| { // Advance progress depends on tool and the - // block kind: https://minecraft.gamepedia.com/Breaking#Speed + // block kind: https://minecraft.wiki/w/Breaking#Speed // * If the block requires some tool to harvest (i.e. it requires a tool to get the item after it breaks), // then if that tool is not held, progress is hindered by a factor of 5. Otherwise, the hindrance // is only a factor of 1.5. diff --git a/feather/old/server/util/src/block.rs b/feather/old/server/util/src/block.rs index 21816e1b4..2cd19493e 100644 --- a/feather/old/server/util/src/block.rs +++ b/feather/old/server/util/src/block.rs @@ -118,7 +118,7 @@ fn face_facing_offset(id: BlockId) -> BlockPosition { use feather_core::blocks::SimplifiedBlockKind::*; fn check_block_support_at(id: BlockId, game: &Game, pos: BlockPosition) -> Option { - // TODO leaves are technically a full block, but e.g. torches can't be placed on them https://minecraft.gamepedia.com/Opacity/Placement + // TODO leaves are technically a full block, but e.g. torches can't be placed on them https://minecraft.wiki/w/Opacity/Placement let block_down = game.block_at(pos + DOWN); let block_facing = if id.has_facing_cardinal() { game.block_at(pos + id.facing_cardinal().unwrap().opposite().offset()) diff --git a/libcraft/core/src/gamerules.rs b/libcraft/core/src/gamerules.rs index e9455ca55..7d773d22d 100644 --- a/libcraft/core/src/gamerules.rs +++ b/libcraft/core/src/gamerules.rs @@ -1,4 +1,4 @@ -//! Data sourced from: +//! Data sourced from: use serde::{Deserialize, Serialize}; diff --git a/libcraft/items/src/enchantment.rs b/libcraft/items/src/enchantment.rs index a06661c8a..73146ecb6 100644 --- a/libcraft/items/src/enchantment.rs +++ b/libcraft/items/src/enchantment.rs @@ -1,4 +1,4 @@ -//! Data sourced from: +//! Data sourced from: use serde::{Deserialize, Serialize};