Skip to content

Commit

Permalink
ExprFireTime - fix error when firetime < 0
Browse files Browse the repository at this point in the history
- Ref #436
  • Loading branch information
ShaneBeee committed Jul 12, 2023
1 parent 20f278b commit 55610f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelaye

@Override
public @Nullable Timespan convert(Entity entity) {
return Timespan.fromTicks_i(entity.getFireTicks());
return Timespan.fromTicks_i(Math.max(entity.getFireTicks(), 0));
}

@SuppressWarnings("NullableProblems")
Expand Down

0 comments on commit 55610f8

Please sign in to comment.