mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Fix #745 backpack item config gets the wrong meta value
This commit is contained in:
1 parent
dea639cee2
commit
a972287513
4 files changed
+16
-37
No files matched your search
@@ -421,7 +421,7 @@ public class PluginStorage extends ForestryPlugin {
|
||||
List<String> backpackOreDict = new ArrayList<String>();
|
||||
|
||||
{
|
||||
List<String> validItems = backpackDefinition.getValidItemStacks();
|
||||
List<String> validItems = new ArrayList<String>(backpackDefinition.getValidItemStacks());
|
||||
Collections.sort(validItems);
|
||||
String[] defaultValidItems = validItems.toArray(new String[validItems.size()]);
|
||||
|
||||
@@ -433,7 +433,7 @@ public class PluginStorage extends ForestryPlugin {
|
||||
}
|
||||
|
||||
{
|
||||
List<Integer> oreIds = backpackDefinition.getValidOreIds();
|
||||
List<Integer> oreIds = new ArrayList<Integer>(backpackDefinition.getValidOreIds());
|
||||
String[] defaultOreNames = new String[oreIds.size()];
|
||||
for (int i = 0; i < oreIds.size(); i++) {
|
||||
int oreId = oreIds.get(i);
|
||||
|
||||
Reference in new issue
Block a user