mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Better descriptions on dependency version range error screen (#4284)
This commit is contained in:
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 )
|
||||
|
||||
Reference in new issue
Block a user