more readability

master
Mohammad Shoaib 2022-03-20 13:04:24 +05:30
parent b47e1b5cd6
commit b3a9e97016
2 changed files with 3 additions and 3 deletions

View File

@ -678,7 +678,7 @@ namespace stardew_access.Features
if (correctNameAndCategory.name != null) if (correctNameAndCategory.name != null)
toReturn = correctNameAndCategory; toReturn = correctNameAndCategory;
if (toReturn.name.ToLower().Equals("stone")) if (toReturn.name.ToLower().Equals("stone")) // Fix for `Busy stone`
toReturn.category = CATEGORY.Debris; toReturn.category = CATEGORY.Debris;
if (obj is Chest) if (obj is Chest)
@ -690,7 +690,7 @@ namespace stardew_access.Features
if (obj is Furniture) if (obj is Furniture)
toReturn.category = CATEGORY.Furnitures; toReturn.category = CATEGORY.Furnitures;
if (toReturn.category == CATEGORY.Others) if (toReturn.category == CATEGORY.Others) // Fix for `Harvestable table` and `Busy nodes`
{ {
MachineState machineState = GetMachineState(obj); MachineState machineState = GetMachineState(obj);
if (machineState == MachineState.Ready) if (machineState == MachineState.Ready)

View File

@ -54,7 +54,7 @@ namespace stardew_access.Patches
LibraryMuseum libraryMuseum = (LibraryMuseum)Game1.currentLocation; LibraryMuseum libraryMuseum = (LibraryMuseum)Game1.currentLocation;
if (libraryMuseum.isTileSuitableForMuseumPiece(tileX, tileY)) if (libraryMuseum.isTileSuitableForMuseumPiece(tileX, tileY))
toSpeak = $"{tileX}x {tileY}y"; toSpeak = $"slot {tileX}x {tileY}y";
if (museumQueryKey != toSpeak) if (museumQueryKey != toSpeak)
{ {