Fixed doubled base production modifier, fixed tooltips for frames with negative modifiers

This commit is contained in:
Gabriel Eiseman committed 2023-07-14 16:00:06 -04:00
1 parent 6f399f1f96
commit 22ff1f569a
3 files changed
+8 -5

No files matched your search

@@ -84,10 +84,12 @@ public class EventHandlerApiculture {
String formatted = color.toString();
// Set symbol for if this value is additive or multiplicative
if (additive) {
if (!additive) {
formatted += " x";
} else if (value >= 0.0F) {
formatted += " +";
} else {
formatted += " x";
formatted += " "; // the "-" will be applied, but we still need a space or minecraft will crash
}
// trim trailing zeroes if no decimal-precision is needed