-
Notifications
You must be signed in to change notification settings - Fork 305
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
Cleaned up Throwable try catches #3280
base: master
Are you sure you want to change the base?
Conversation
@RecursivePineapple could you rebase this PR and address the comments if you're still interested in working on it? |
@serenibyss sure, I'm working on something else right now but I can work on it later |
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.
Overall a nice cleanup, just a couple that I'm hesitant on
@@ -177,96 +176,92 @@ public void updateEntity() { | |||
} else { | |||
tTime = 0; | |||
} | |||
try { |
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.
I'm not confident on removing this one, have you tested it specifically?
@@ -130,32 +128,26 @@ public int checkRecipe() { | |||
this.mOutputBlocked += 1; | |||
} else if ((GTUtility.isStackValid(aStack)) && (aStack.stackSize > 0)) { | |||
if ((getFillableStack() != null) && (getFillableStack().containsFluid(Materials.Honey.getFluid(100L)))) { | |||
try { |
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.
This one too
@RecursivePineapple any update here? |
This removes a large number of Throwable try/catches. Several important try/catches were given a better error message.
This was tested in the latest nightly and it worked fine. I placed a few machines to make sure nothing important was broken, although many of the try/catches had no explanation. If they prevented a crash due to a bug, I have no way of verifying that the bug is still present.