fix: compile

This commit is contained in:
str1k3r committed 2026-10-03 01:44:31 -04:00
1 parent e667caef00
commit 81621734b2
2 files changed
-22

No files matched your search

-20
View File
@@ -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> animal = dynamic_pointer_cast<Animal>(hitResult->entity);
if(!animal->isBaby()) *piUse=IDS_TOOLTIPS_SHEAR;
}
break;
default:
{
shared_ptr<Animal> animal = dynamic_pointer_cast<Animal>(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> sheep = dynamic_pointer_cast<Sheep>(hitResult->entity);
// can only shear a sheep that hasn't been sheared
if(!sheep->isSheared() )
{
*piUse=IDS_TOOLTIPS_SHEAR;
}
}
break;
default:
{
-2
View File
@@ -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: