From ebeb164d2be6754908a9c562850e585f18f70b88 Mon Sep 17 00:00:00 2001 From: Spongecade Date: Wed, 27 Sep 2023 13:07:42 -0500 Subject: Update Minecraft Wiki links to new domain (#5532) * Update Minecraft Wiki links to new domain * Added Spongecade to contributors * Sorted Spongecade --- src/Entities/Player.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Entities/Player.cpp') diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index ba1059b7c..c580d8293 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2069,7 +2069,7 @@ void cPlayer::UseItem(int a_SlotNumber, short a_Damage) return; } - // Ref: https://minecraft.gamepedia.com/Enchanting#Unbreaking + // Ref: https://minecraft.wiki/w/Enchanting#Unbreaking unsigned int UnbreakingLevel = Item.m_Enchantments.GetLevel(cEnchantments::enchUnbreaking); double chance = ItemCategory::IsArmor(Item.m_ItemType) ? (0.6 + (0.4 / (UnbreakingLevel + 1))) : (1.0 / (UnbreakingLevel + 1)); @@ -2115,7 +2115,7 @@ void cPlayer::UseItem(int a_SlotNumber, short a_Damage) void cPlayer::HandleFood(void) { - // Ref.: https://minecraft.gamepedia.com/Hunger + // Ref.: https://minecraft.wiki/w/Hunger if (IsGameModeCreative() || IsGameModeSpectator()) { @@ -2606,7 +2606,7 @@ bool cPlayer::IsInsideWater() float cPlayer::GetDigSpeed(BLOCKTYPE a_Block) { - // Based on: https://minecraft.gamepedia.com/Breaking#Speed + // Based on: https://minecraft.wiki/w/Breaking#Speed // Get the base speed multiplier of the equipped tool for the mined block float MiningSpeed = GetEquippedItem().GetHandler().GetBlockBreakingStrength(a_Block); @@ -2672,7 +2672,7 @@ float cPlayer::GetDigSpeed(BLOCKTYPE a_Block) float cPlayer::GetMiningProgressPerTick(BLOCKTYPE a_Block) { - // Based on https://minecraft.gamepedia.com/Breaking#Calculation + // Based on https://minecraft.wiki/w/Breaking#Calculation // If we know it's instantly breakable then quit here: if (cBlockInfo::IsOneHitDig(a_Block)) { @@ -2695,7 +2695,7 @@ float cPlayer::GetMiningProgressPerTick(BLOCKTYPE a_Block) bool cPlayer::CanInstantlyMine(BLOCKTYPE a_Block) { - // Based on: https://minecraft.gamepedia.com/Breaking#Calculation + // Based on: https://minecraft.wiki/w/Breaking#Calculation // If the dig speed is greater than 30 times the hardness, then the wiki says we can instantly mine: return GetDigSpeed(a_Block) > (30 * cBlockInfo::GetHardness(a_Block)); -- cgit v1.2.3