Skip to content

Conversation

@jacob-keller
Copy link
Owner

The Android version of the game apparently does not have the
checkHeldItem() function in its InventoryPage. This function checks if
CursorSlotItem is null, but optionally takes a function to test the
currently held item with.

We never use the function, and just use it to check whether there is any
held item. Instead of using the function, replace the code to simply
directly check of Game1.player.CustorSlotItem is not null. This removes
one incompatibility with the Android version of the game.

While at it, convert the hoverText checks to use IsNullOrEmpty as
pointed out by YourJeiJi.

Signed-off-by: Jacob Keller jacob.keller@gmail.com

The Android version of the game apparently does not have the
checkHeldItem() function in its InventoryPage. This function checks if
CursorSlotItem is null, but optionally takes a function to test the
currently held item with.

We never use the function, and just use it to check whether there is any
held item. Instead of using the function, replace the code to simply
directly check of Game1.player.CustorSlotItem is not null. This removes
one incompatibility with the Android version of the game.

While at it, convert the hoverText checks to use IsNullOrEmpty as
pointed out by YourJeiJi.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants