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

Refactor DataStick item and associated interaction interface #2561

Merged
merged 10 commits into from
Dec 20, 2024

Conversation

omergunr100
Copy link
Contributor

What

Data stick now copies on sneak + right click and pastes on right click.
Cleanup.

Implementation Details

Moved from useOn to onItemUseFirst to be able to use shift clicking.
Machines that implement IDataStickInteractable no longer need to implement IInteractedMachine .
Removed edge cases from the data stick logic by implementing IDataStickInteractable.

Additionally

Fixes #2556

Potential Compatibility Issues

Any addon machines that used to implement IDataStickInteractable will need to be refactored to match the new method signatures. (although addon machines should probably be handled by the memory card for most cases)

replaced edge cases with implementations of IDataStickInteractable.
IDataStickInteractable no longer implements IInteractedMachine.
@omergunr100 omergunr100 requested a review from a team as a code owner December 16, 2024 20:11
@krossgg krossgg added the type: refactor Suggestion to refactor a section of code label Dec 19, 2024
@omergunr100 omergunr100 deleted the 1.20.1-datastick-stuff branch December 19, 2024 09:46
@screret
Copy link
Member

screret commented Dec 19, 2024

uh?

@omergunr100 omergunr100 restored the 1.20.1-datastick-stuff branch December 19, 2024 09:46
@omergunr100
Copy link
Contributor Author

deleted the wrong branch

@omergunr100 omergunr100 reopened this Dec 19, 2024
@Spicierspace153 Spicierspace153 merged commit 45970e1 into GregTechCEu:1.20.1 Dec 20, 2024
2 checks passed
@omergunr100 omergunr100 deleted the 1.20.1-datastick-stuff branch December 20, 2024 22:04
omergunr100 added a commit to omergunr100/GregTech-Modern that referenced this pull request Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Suggestion to refactor a section of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent controls for copying machine settings.
4 participants