Tough as nails incompatibility.
XxDimno1xX opened this issue ยท 0 comments
- ALWAYS PROVIDE INFORMATION ABOUT MODLOADER (Fabric / Forge) AND MOD VERSION (For Example 1.19.2-8.2.10)
This was generated using AI so there may be some incorrect information. But it has been mostly revised.
TLDR: When drinking from the hose to refill thirst, travelers back pack calls upon the field "THIRST" but it appears in the latest versions of tough as nails that doesn't exist, causing a crash with error code -1, The crash log reads "no such field error". More details are available in the AI generated part below.
[1.20.1 Forge] Intermittent Crash When Drinking from Hose (Tough As Nails Incompatibility)
The game intermittently crashes when using the Traveler's Backpack hose to drink liquids from the tank, specifically when the Tough As Nails mod is also installed. The crash is directly related to the code that attempts to update the thirst bar.
๐ Description of the Bug
The crash does not happen every time, but occurs inconsistently when using the hose in "Drink Mode" to consume liquids (like purified water, or potentially other thirst-affecting liquids). The incompatibility appears to be that Traveler's Backpack is trying to access a field or method for the thirst mechanic (THIRST) in Tough As Nails that no longer exists in recent versions of Tough As Nails.
๐ Environment
Minecraft Version: 1.20.1
Forge Version: 47.4.0 (or similar 1.20.1 Forge version)
Traveler's Backpack Version: travelersbackpack-forge-1.20.1-9.1.45 (Please check your specific version number)
Tough As Nails Version: ToughAsNails-forge-1.20.1-9.2.0.171 (Please check your specific version number)
๐ Steps to Reproduce
Ensure a liquid (like water) is in the Traveler's Backpack fluid tank.
Equip the Hose and select Drink Mode.
Right-click repeatedly to drink the liquid.
The crash will eventually occur, sometimes on the first drink, sometimes after several attempts.
๐ฅ Crash Log Snippet
The core of the issue is a NoSuchFieldError, indicating a field name change or removal in Tough As Nails that the backpack mod is still referencing.
Caused by: java.lang.NoSuchFieldError: THIRST
at com.tiviacz.travelersbackpack.compat.toughasnails.ToughAsNailsPotionEffect.affectDrinker(ToughAsNailsPotionEffect.java:33)