-
Notifications
You must be signed in to change notification settings - Fork 506
AttSync: Disconnect when attachment target is null #4538
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
AttSync: Disconnect when attachment target is null #4538
Conversation
modmuss50
left a comment
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 needs some form of testing, ideally automated if not a command that tried to do something funny would be fine.
...tachment-api-v1/src/main/java/net/fabricmc/fabric/impl/attachment/sync/AttachmentChange.java
Outdated
Show resolved
Hide resolved
...tachment-api-v1/src/main/java/net/fabricmc/fabric/impl/attachment/sync/AttachmentChange.java
Outdated
Show resolved
Hide resolved
|
Hey @Octol1ttle no pressure, just wondering if you are planning on finishing this off, its so close to being done. Im happy to help/take over if you like. |
|
Sorry, this PR completely left my memory. I resolved the review comments, but I have zero idea on how to do the testing bit 😅 |
|
Awesome, thanks for that. I'll take a look a testing, worse case I'll just do some manual testing. |
|
I have added a basic unit test, and marked the file to be translated. |
* Add descriptive error message when receiving attachment changes for unknown targets * fix line breaks... * fix checkstyle * use StringJoiner, disconnect on error * Add pretty error message * Make error message translatable, add AttachmentSyncException * Break out of attachment application loop if there's an error * Add a simple unit test for applying to an invalid target. * Add lang file to be translated. * woops --------- Co-authored-by: modmuss50 <[email protected]> (cherry picked from commit f94390d)
* Add descriptive error message when receiving attachment changes for unknown targets * fix line breaks... * fix checkstyle * use StringJoiner, disconnect on error * Add pretty error message * Make error message translatable, add AttachmentSyncException * Break out of attachment application loop if there's an error * Add a simple unit test for applying to an invalid target. * Add lang file to be translated. * woops --------- Co-authored-by: modmuss50 <[email protected]>
Example:
