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

Check for dimension in FireCraftingHandler fallback method #606

Merged
merged 1 commit into from Feb 7, 2024

Conversation

Techjar
Copy link
Contributor

@Techjar Techjar commented Feb 7, 2024

Description

The fallback method for when doFireTick is disabled doesn't check which dimension the tracked fire belongs to, and thus will end up ignoring fires in dimensions other than the overworld, as the blocks obviously won't be found in the wrong dimension and it simply removes the tracker entries. It also breaks with doFireTick enabled when Aether is installed, due to Aether using a wrapped gamerules object to return false for doFireTick in its dimension only.

The fix is very simple, just skip over any non-matching dimension entries when iterating. I tested locally with Aether installed and confirmed it works.

This shouldn't be a breaking change.

Closes #603

Checklist:

  • My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you).
  • I have performed a self-review of my own code.
  • I have commented my code in areas it may be challenging to understand.
  • I have made corresponding changes to the documentation.
  • My changes are ready for review from a contributor.

@ferriarnus
Copy link
Member

Yeah this makes sense, seems we missed that code path. It looks fine to merge IMO, or do we wait for 1.20.2 @Rover656 ?

@Rover656
Copy link
Member

Rover656 commented Feb 7, 2024

Happy to merge into 20.1 :) I kinda want to squash a few of the bugs left over if I can anyway :p

@Rover656
Copy link
Member

Rover656 commented Feb 7, 2024

Thanks a lot for this Techjar!

@Rover656 Rover656 merged commit e6f6bc9 into Team-EnderIO:dev/1.20.1 Feb 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Aether mod prevents setting bedrock on fire for Grains of Infinity
3 participants