-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.1.2: Division by zero in salvaging menu #1458
Comments
Do you get a similar error when you do the following?
Similarly, does the server divide by zero when you reforge the bugged helmet then place it in a hopper facing the salvaging table? Also, can you please try running |
{
components: {
"apotheosis:rarity": "apotheosis:mythic",
"apotheosis:durability_bonus": 0.61421025f,
"apotheosis:sockets": 1,
"apotheosis:affix_name": {
with: [
{
translate: "affix.apotheosis:armor/attribute/ironforged"
},
{
"": ""
},
{
translate: "affix.apotheosis:armor/attribute/blessed.suffix"
}
],
color: "#ED7014",
translate: "misc.apotheosis.affix_name.three"
},
"apotheosis:affixes": {
"apotheosis:armor/dmg_reduction/grounded": 0.48466235f,
"apotheosis:armor/dmg_reduction/deflective": 0.9633712f,
"apotheosis:armor/dmg_reduction/runed": 0.16254216f,
"apotheosis:armor/attribute/fireproof": 0.9293304f,
"apotheosis:generic/attribute/lucky": 0.99269307f,
"apotheosis:armor/attribute/ironforged": 0.632133f,
"apotheosis:armor/attribute/blessed": 0.73562926f
}
},
count: 1,
id: "magistuarmory:face_helmet"
} |
The mod seems to set the durability of the armor slots for its armor definition to 0 by default Maybe these other slots aren't meant to be obtainable / don't have an item or sth. |
This is... technically an issue with the other mod. I can do something to not crash, but I'll be adding a warning message that blames the offending mod for returning zero here. |
The game throws a division by zero exception on line 128 of
SalvagingMenu.java
ingetSalvageCounts
when placing some items in the salvaging table. It appearsstack.getMaxDamage()
has the possibility of being 0 on some items even if they're damageable (don't ask me how!).I had this happen with Epic Knights' face helmet, which is a seemingly bugged item, but it seems to be an easy fix to add to the salvaging menu anyway.
latest.log
The text was updated successfully, but these errors were encountered: