fixed last java warnings

This commit is contained in:
SpaceToad 2014-05-05 19:45:11 +02:00
parent 27f858e2b5
commit eee2c2272f
2 changed files with 3 additions and 2 deletions

View file

@ -401,7 +401,7 @@ public class BuildCraftCore extends BuildCraftMod {
// it happens to be very expensive at run time, so we need some way
// to operate it only when releval (e.g. in the cycle following a
// click request).
if (true) {
if (NEXTGEN_PREALPHA) {
return;
}

View file

@ -85,7 +85,8 @@ public final class InterModComms {
}
ItemStack is = ItemStack.loadItemStackFromNBT(recipe.getCompoundTag("output"));
if (is != null && !input.isEmpty()) {
AssemblyRecipeManager.INSTANCE.addRecipe(recipe.getDouble("energy"), is, input.toArray(new ItemStack[input.size()]));
AssemblyRecipeManager.INSTANCE.addRecipe(recipe.getDouble("energy"), is,
(Object[]) input.toArray(new ItemStack[input.size()]));
} else {
failed = true;
}