Skip to content

Commit

Permalink
Fix inverted return value in experimental fire touching optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Feb 4, 2025
1 parent 0e0c025 commit 7b07246
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

import java.util.stream.Stream;

@Mixin(Entity.class)
public abstract class EntityMixin implements VicinityCacheProvider {
private static final Stream<BlockState> EMPTY_BLOCKSTATE_STREAM = Stream.empty();
@Shadow
private int remainingFireTicks;

Expand Down Expand Up @@ -62,11 +59,11 @@ private boolean skipFireTestIfResultDoesNotMatterOrIsCached(Iterable<BlockState>
for (BlockState state : iterable) {
if (state.is(BlockTags.FIRE) || state.is(Blocks.LAVA)) {
bc.setCachedTouchingFireLava(true);
return false;
return true;
}
}

bc.setCachedTouchingFireLava(false);
return true;
return false;
}
}

0 comments on commit 7b07246

Please sign in to comment.