Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Add Wireless Charger Baubles Compat #682

Merged
merged 7 commits into from
Jun 27, 2023

Conversation

minecraft7771
Copy link
Contributor

Makes wireless charger be able to charge items in bauble slots. Also integrated some suggestions from intelliJ to reduce number of warnings in the class.

@minecraft7771 minecraft7771 requested a review from a team June 26, 2023 21:26
Copy link

@Alastors Alastors left a comment

Choose a reason for hiding this comment

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

Yeah looks fine to me but maybe we should terminate the commented out code, no?

Copy link
Member

@miozune miozune left a comment

Choose a reason for hiding this comment

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

  • I find logic for charging items suspicious: chargeItemsEx directly reduces energy stored in the tile, but then mStartingEu - mCurrentEu <= 0 section reduces energy depending on distance. I think the latter code can be removed. nvm, it seems to be penalty for distance
  • Annotate mEntity in chargeItems and chargeItemsEx to be non-null

Copy link
Member

@miozune miozune left a comment

Choose a reason for hiding this comment

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

thanks

@minecraft7771 minecraft7771 merged commit 904c942 into master Jun 27, 2023
@minecraft7771 minecraft7771 deleted the feature/WirelessBaubleCharger branch June 27, 2023 09:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants