Skip to content

Commit

Permalink
Merge pull request #606 from Techjar/grains-aether-fix
Browse files Browse the repository at this point in the history
Check for dimension in FireCraftingHandler fallback method
  • Loading branch information
Rover656 authored Feb 7, 2024
2 parents 91b6719 + 736cca5 commit e6f6bc9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ public static void onWorldTick(TickEvent.LevelTickEvent event) {
// Search for any fires that are due to spawn drops.
long gameTime = event.level.getGameTime();
for (Map.Entry<FireIndex, Long> fire : FIRE_TRACKER.entrySet()) {
if (!fire.getKey().dimension().equals(event.level.dimension())) {
continue;
}

BlockPos pos = fire.getKey().pos();
if (gameTime > fire.getValue()) {
if (event.level.getBlockState(pos).getBlock() instanceof FireBlock) {
Expand Down

0 comments on commit e6f6bc9

Please sign in to comment.