Skip to content
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

Merged
merged 3 commits into from
Nov 5, 2022

Conversation

KostyaKapitonov
Copy link
Contributor

No description provided.

Comment on lines 15 to 27
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);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

catch Throwable вне контекста обработки ошибок это слишком

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AndreySolodovnikov убрал

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

надеюсь оно теперь не выкидывает ошибки наружу )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AndreySolodovnikov нее, я во время разработки завернул т.к. падало - пока разбирался как это вообще сделать...
но потом забыл убрать, вернее просто не подумал, что его тут оставлять нежелательно

Copy link
Contributor

@AndreySolodovnikov AndreySolodovnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try catch надо убрать

@AndreySolodovnikov AndreySolodovnikov merged commit ddfddde into IIA-dev Nov 5, 2022
@AndreySolodovnikov AndreySolodovnikov deleted the creative_loader_and_pump_fix branch November 26, 2022 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants