Fixed #786
This commit is contained in:
parent
a9bf0e6bea
commit
90e89673d3
|
@ -530,6 +530,8 @@ public class EnergyValueRegistry implements INBTTaggable, JsonSerializer<EnergyV
|
|||
{
|
||||
List stacksInRange = new ArrayList<WrappedStack>();
|
||||
|
||||
if (valueMappings != null)
|
||||
{
|
||||
SortedMap<EnergyValue, List<WrappedStack>> tailMap = energyValueRegistry.valueMappings.tailMap(start);
|
||||
SortedMap<EnergyValue, List<WrappedStack>> headMap = energyValueRegistry.valueMappings.headMap(finish);
|
||||
|
||||
|
@ -571,6 +573,7 @@ public class EnergyValueRegistry implements INBTTaggable, JsonSerializer<EnergyV
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return stacksInRange;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue