-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
creative fluid loader upgrade and primitive pump fix #247
Conversation
FluidStack tLiquid = getWater(8000); | ||
try { | ||
FluidTankInfo[] fInfoList = tTank.getTankInfo(ForgeDirection.UNKNOWN); | ||
if(fInfoList.length > 0) { | ||
FluidStack tankFluid = fInfoList[0].fluid; | ||
if(tankFluid != null && tankFluid.amount > 0) { | ||
tLiquid = tankFluid.copy(); | ||
tLiquid.amount = 8000; | ||
} | ||
} | ||
} catch (Throwable e) { | ||
tLiquid = getWater(8000); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
catch Throwable вне контекста обработки ошибок это слишком
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndreySolodovnikov убрал
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
надеюсь оно теперь не выкидывает ошибки наружу )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndreySolodovnikov нее, я во время разработки завернул т.к. падало - пока разбирался как это вообще сделать...
но потом забыл убрать, вернее просто не подумал, что его тут оставлять нежелательно
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try catch надо убрать
No description provided.