Fix inverted parameters in OreDictionary.getOreID Closes #1123

-.- Closes #1120
This commit is contained in:
Lex Manos 2014-06-04 23:09:13 -07:00
parent f3cbc6c262
commit 03ae909762
2 changed files with 3 additions and 3 deletions

View File

@ -1192,7 +1192,7 @@
+ * @param level Harvest level: + * @param level Harvest level:
+ * Wood: 0 + * Wood: 0
+ * Stone: 1 + * Stone: 1
+ * Iton: 2 + * Iron: 2
+ * Diamond: 3 + * Diamond: 3
+ * Gold: 0 + * Gold: 0
+ */ + */
@ -1211,7 +1211,7 @@
+ * @param level Harvest level: + * @param level Harvest level:
+ * Wood: 0 + * Wood: 0
+ * Stone: 1 + * Stone: 1
+ * Iton: 2 + * Iron: 2
+ * Diamond: 3 + * Diamond: 3
+ * Gold: 0 + * Gold: 0
+ * @param metadata The specific metadata to set + * @param metadata The specific metadata to set

View File

@ -294,7 +294,7 @@ public class OreDictionary
{ {
for(ItemStack target : ore.getValue()) for(ItemStack target : ore.getValue())
{ {
if (itemMatches(itemStack, target, false)) if (itemMatches(target, itemStack, false))
{ {
return ore.getKey(); return ore.getKey();
} }