Skip to content

Commit

Permalink
Fixes the burning time expression not returning super in the init (#7374
Browse files Browse the repository at this point in the history
)

* Fix the burning time expression not returning super

* Change the test name to match the issue

* Update src/test/skript/tests/regressions/7373-burning-time-in-section.sk

---------

Co-authored-by: Moderocky <admin@moderocky.com>
  • Loading branch information
TheLimeGlass and Moderocky authored Jan 3, 2025
1 parent 3e8c8ba commit 79748d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class ExprFireTicks extends SimplePropertyExpression<Entity, Timespan> {
@Override
public boolean init(Expression<?>[] expressions, int matchedPattern, Kleenean isDelayed, ParseResult parseResult) {
max = (parseResult.hasTag("max"));
return true;
return super.init(expressions, matchedPattern, isDelayed, parseResult);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
test "7373 burning time section":
spawn a pig at event-location:
set burning time of event-entity to 9000 ticks
set {_e} to entity
delete entity within {_e}

0 comments on commit 79748d8

Please sign in to comment.