Accept 0 as max enchant value.

Contributed by fruit.
This commit is contained in:
MobiusDevelopment 2022-04-20 23:33:04 +00:00
parent 8c7072062d
commit f29486e066
25 changed files with 25 additions and 25 deletions

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -92,7 +92,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -92,7 +92,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}

View File

@ -94,7 +94,7 @@ public class EnchantItemGroupsData implements IXmlReader
min = Integer.parseInt(range);
max = min;
}
if ((min > -1) && (max > 0))
if ((min > -1) && (max > -1))
{
group.addChance(new RangeChanceHolder(min, max, chance));
}