Added cmd Unlabel & Several Fixes

This commit is contained in:
Sn0wStorm
2013-08-30 21:19:49 +02:00
parent d1e9ad29f8
commit ea06f2d707
11 changed files with 245 additions and 151 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ public class BRecipe {
}
// difference between given and recipe-wanted woodtype
public float getWoodDiff(byte wood) {
public int getWoodDiff(byte wood) {
int woodType = 0;
if (wood == 0x0) {
woodType = 2;
@@ -95,7 +95,7 @@ public class BRecipe {
} else if (wood == 0x3) {
woodType = 3;
}
return Math.abs(woodType - wood);
return Math.abs(woodType - this.wood);
}
public boolean isCookingOnly() {