diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-12 04:34:18 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-12 04:34:18 +0200 |
| commit | 2b075b31a4fe0c44b681825271fdf6b0f995ae95 (patch) | |
| tree | e3b8876c4bfde422a3f78e01f7f61d53087a5e43 | |
| parent | 4d74e926a1ae97ee1038c78940db0dd69311a67c (diff) | |
| download | SkyHanni-2b075b31a4fe0c44b681825271fdf6b0f995ae95.tar.gz SkyHanni-2b075b31a4fe0c44b681825271fdf6b0f995ae95.tar.bz2 SkyHanni-2b075b31a4fe0c44b681825271fdf6b0f995ae95.zip | |
Fixed NPE crash
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt index 8a882226d..418b22960 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt @@ -54,7 +54,7 @@ class GardenAPI { private fun checkItemInHand() { val toolItem = Minecraft.getMinecraft().thePlayer.heldItem - val crop = toolItem.getCropType() + val crop = toolItem?.getCropType() val newTool = getToolInHand(toolItem, crop) if (toolInHand != newTool) { toolInHand = newTool |
