Better descriptions on dependency version range error screen (#4284)

This commit is contained in:
tterrag authored and LexManos committed 2017-08-09 15:10:54 -05:00
1 parent b918d3551e
commit ce168d556d
2 files changed
+22 -3

No files matched your search

@@ -215,10 +215,25 @@ public class Restriction
if ( getLowerBound().getVersionString().equals(getUpperBound().getVersionString()) )
{
return getLowerBound().getVersionString();
}
else
}
else
{
return I18n.format("fml.messages.version.restriction.bounded", getLowerBound(), getUpperBound());
if (isLowerBoundInclusive() && isUpperBoundInclusive())
{
return I18n.format("fml.messages.version.restriction.bounded.inclusive", getLowerBound(), getUpperBound());
}
else if (isLowerBoundInclusive())
{
return I18n.format("fml.messages.version.restriction.bounded.upperexclusive", getLowerBound(), getUpperBound());
}
else if (isUpperBoundInclusive())
{
return I18n.format("fml.messages.version.restriction.bounded.lowerexclusive", getLowerBound(), getUpperBound());
}
else
{
return I18n.format("fml.messages.version.restriction.bounded.exclusive", getLowerBound(), getUpperBound());
}
}
}
else if ( getLowerBound() != null )