Skip to content

Commit

Permalink
Check for dimension in FireCraftingHandler fallback method
Browse files Browse the repository at this point in the history
  • Loading branch information
Techjar committed Feb 7, 2024
1 parent 91b6719 commit 736cca5
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 736cca5

Please sign in to comment.