From 81621734b2b0a002af862e91fd562f76a98b438e Mon Sep 17 00:00:00 2001 From: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com> Date: Sat, 3 Oct 2026 01:44:31 -0400 Subject: [PATCH] fix: compile --- Minecraft.Client/Minecraft.cpp | 20 -------------------- Minecraft.World/Player.cpp | 2 -- 2 files changed, 22 deletions(-) diff --git a/Minecraft.Client/Minecraft.cpp b/Minecraft.Client/Minecraft.cpp index 182c5d99..d002302c 100644 --- a/Minecraft.Client/Minecraft.cpp +++ b/Minecraft.Client/Minecraft.cpp @@ -2565,7 +2565,6 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures) case Tile::button_stone_Id: case Tile::button_wood_Id: case Tile::trapdoor_Id: - case Tile::fenceGate_Id: *piAction=IDS_TOOLTIPS_MINE; *piUse=IDS_TOOLTIPS_USE; break; @@ -2766,13 +2765,6 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures) case Item::bucket_empty_Id: // You can milk a mooshroom with either a bowl (mushroom soup) or a bucket (milk)! *piUse=IDS_TOOLTIPS_MILK; break; - case Item::shears_Id: - { - if(player->isAllowedToAttackAnimals()) *piAction=IDS_TOOLTIPS_HIT; - shared_ptr animal = dynamic_pointer_cast(hitResult->entity); - if(!animal->isBaby()) *piUse=IDS_TOOLTIPS_SHEAR; - } - break; default: { shared_ptr animal = dynamic_pointer_cast(hitResult->entity); @@ -2867,18 +2859,6 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures) *piUse=IDS_TOOLTIPS_DYE; } } - break; - case Item::shears_Id: - { - shared_ptr sheep = dynamic_pointer_cast(hitResult->entity); - - // can only shear a sheep that hasn't been sheared - if(!sheep->isSheared() ) - { - *piUse=IDS_TOOLTIPS_SHEAR; - } - } - break; default: { diff --git a/Minecraft.World/Player.cpp b/Minecraft.World/Player.cpp index 59b60a91..d42769bd 100644 --- a/Minecraft.World/Player.cpp +++ b/Minecraft.World/Player.cpp @@ -2586,7 +2586,6 @@ bool Player::isAllowedToUse(Tile *tile) case Tile::button_stone_Id: case Tile::button_wood_Id: case Tile::lever_Id: - case Tile::fenceGate_Id: case Tile::trapdoor_Id: allowed = true; break; @@ -2619,7 +2618,6 @@ bool Player::isAllowedToUse(Tile *tile) case Tile::button_stone_Id: case Tile::button_wood_Id: case Tile::lever_Id: - case Tile::fenceGate_Id: case Tile::trapdoor_Id: case Tile::chest_Id: case Tile::furnace_Id: