Skip to content

Spring Cleaning#127

Merged
Dream-Master merged 33 commits into
masterfrom
spring-cleaning
May 12, 2026
Merged

Spring Cleaning#127
Dream-Master merged 33 commits into
masterfrom
spring-cleaning

Conversation

@koolkrafter5
Copy link
Copy Markdown

Many automated fixes and simple renaming of params/vars. Also deleted a few entirely unused classes/methods and code that's been commented for over a decade.

Bigger changes:
Demon entities now inherit a lot of copy-pasted logic like used for taming.
Projectiles inherit copy-pasted logic and removed unused ctors. Not the basic ones with just the world param since those get used by MC through reflection.
Bound tools also now check for player's block breaking permission.
Use modern switch syntax and set many fields to final.

@koolkrafter5 koolkrafter5 requested a review from a team May 9, 2026 08:12
Copy link
Copy Markdown

@Guvante Guvante left a comment

Choose a reason for hiding this comment

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

Made it through 78 files before calling it a night here are the notes for up to that point

Comment thread src/main/java/WayofTime/alchemicalWizardry/api/items/ItemSpellMultiTool.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/api/items/ShapedBloodOrbRecipe.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/api/items/ShapelessBloodOrbRecipe.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/api/spell/EntitySpellProjectile.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/api/spell/EntitySpellProjectile.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/common/block/BlockAltar.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/common/block/BlockCrystal.java Outdated
@koolkrafter5 koolkrafter5 requested a review from Guvante May 10, 2026 06:17
@github-actions
Copy link
Copy Markdown

#128

github-actions Bot and others added 2 commits May 10, 2026 02:20
Copy link
Copy Markdown

@Guvante Guvante left a comment

Choose a reason for hiding this comment

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

Skipped over any files that were only deletes.

225/385...

Copy link
Copy Markdown

@Guvante Guvante left a comment

Choose a reason for hiding this comment

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

Just to call it out I didn't review the massive sets of demon changes as I am getting serious review fatigue so if anyone wants to inspect the several thousands of lines of removed code for behavior changes that would be great.

I think I covered most things except some items but am still 327/406...

Going to see if I can convince GitHub to ignore whitespace since a lot of the remaining ones are those.

Comment thread src/main/java/WayofTime/alchemicalWizardry/api/rituals/LocalRitualStorage.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/api/ColourAndCoords.java
Comment thread src/main/java/WayofTime/alchemicalWizardry/api/Vector3.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/api/Vector3.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/api/Int3.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/common/items/ItemRitualDismantler.java Outdated
@koolkrafter5
Copy link
Copy Markdown
Author

Just to call it out I didn't review the massive sets of demon changes as I am getting serious review fatigue so if anyone wants to inspect the several thousands of lines of removed code for behavior changes that would be great.

I think I covered most things except some items but am still 327/406...

Going to see if I can convince GitHub to ignore whitespace since a lot of the remaining ones are those.

https://github.blog/news-insights/product-news/ignore-white-space-in-code-review/

@Guvante
Copy link
Copy Markdown

Guvante commented May 11, 2026

https://github.blog/news-insights/product-news/ignore-white-space-in-code-review/

I was going to say "GitHub was unhappy about the large PR and apparently broke it" but when I went to grab a screenshot I learned what actually happened was the settings tab got moved to the right side away from the list of commits which is where it used to be...

@koolkrafter5 koolkrafter5 requested a review from Guvante May 11, 2026 22:24
Copy link
Copy Markdown

@Guvante Guvante left a comment

Choose a reason for hiding this comment

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

Finished them all

Comment thread src/main/java/WayofTime/alchemicalWizardry/common/items/BoundAxe.java Outdated
Comment thread src/main/java/WayofTime/alchemicalWizardry/common/spell/simple/SpellTeleport.java Outdated
@koolkrafter5 koolkrafter5 requested a review from Guvante May 12, 2026 13:34

// getStrVsBlock
if (func_150893_a(item, block) <= 1 && !(block instanceof BlockLeavesBase)) {
if (func_150893_a(item, block) <= 1f && !(block instanceof BlockLeavesBase)) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The change from 1.1 to 1 is intended, correct?

float localHardness = block.getBlockHardness(world, x, y, z);

if (localHardness - this.getHardnessDifference() > blockHardness
|| BoundPickaxe.checkPermissions(world, x, y, z, block, meta, player)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I assume this is anti-griefing since I don't see it before, right?

@Dream-Master Dream-Master merged commit 3b2b31f into master May 12, 2026
1 check passed
@Dream-Master Dream-Master deleted the spring-cleaning branch May 12, 2026 18:52
@Alexdoru Alexdoru mentioned this pull request May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants