From 79748d8d23e4416dd43cae2f068e72b0b3457823 Mon Sep 17 00:00:00 2001 From: LimeGlass <16087552+TheLimeGlass@users.noreply.github.com> Date: Fri, 3 Jan 2025 04:53:14 -0700 Subject: [PATCH] Fixes the burning time expression not returning super in the init (#7374) * 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 --- src/main/java/ch/njol/skript/expressions/ExprFireTicks.java | 2 +- .../skript/tests/regressions/7373-burning-time-in-section.sk | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/test/skript/tests/regressions/7373-burning-time-in-section.sk diff --git a/src/main/java/ch/njol/skript/expressions/ExprFireTicks.java b/src/main/java/ch/njol/skript/expressions/ExprFireTicks.java index d9aa7e95cc8..a68e248487d 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprFireTicks.java +++ b/src/main/java/ch/njol/skript/expressions/ExprFireTicks.java @@ -34,7 +34,7 @@ public class ExprFireTicks extends SimplePropertyExpression { @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 diff --git a/src/test/skript/tests/regressions/7373-burning-time-in-section.sk b/src/test/skript/tests/regressions/7373-burning-time-in-section.sk new file mode 100644 index 00000000000..3bd1086ec51 --- /dev/null +++ b/src/test/skript/tests/regressions/7373-burning-time-in-section.sk @@ -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}