Up cast total EU to long (#1430)

* Up cast to long

* Up cast to long
This commit is contained in:
Daniel 2018-04-11 23:28:09 +02:00 committed by Blood-Asp
parent 3936cf7906
commit ddd82e57e9
2 changed files with 2 additions and 2 deletions

View file

@ -218,7 +218,7 @@ public class GT_NEI_AssLineHandler
String[] recipeDesc = ((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.getNeiDesc();
if (recipeDesc == null) {
if (tEUt != 0) {
drawText(10, 73, trans("152","Total: ") + tDuration * tEUt + " EU", -16777216);
drawText(10, 73, trans("152","Total: ") + ((long)tDuration * tEUt) + " EU", -16777216);
drawText(10, 83, trans("153","Usage: ") + tEUt + " EU/t", -16777216);
if (this.mRecipeMap.mShowVoltageAmperageInNEI) {
drawText(10, 93, trans("154","Voltage: ") + tEUt / this.mRecipeMap.mAmperage + " EU", -16777216);

View file

@ -207,7 +207,7 @@ public class GT_NEI_DefaultHandler
String[] recipeDesc = ((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.getNeiDesc();
if (recipeDesc == null) {
if (tEUt != 0) {
drawText(10, 73, trans("152","Total: ") + tDuration * tEUt + " EU", -16777216);
drawText(10, 73, trans("152","Total: ") + ((long)tDuration * tEUt) + " EU", -16777216);
drawText(10, 83, trans("153","Usage: ") + tEUt + " EU/t", -16777216);
if (this.mRecipeMap.mShowVoltageAmperageInNEI) {
drawText(10, 93, trans("154","Voltage: ") + tEUt / this.mRecipeMap.mAmperage + " EU", -16777216);