diff --git a/src/main/java/ch/njol/skript/effects/EffFireworkLaunch.java b/src/main/java/ch/njol/skript/effects/EffFireworkLaunch.java index 721be87af15..85b1643012d 100644 --- a/src/main/java/ch/njol/skript/effects/EffFireworkLaunch.java +++ b/src/main/java/ch/njol/skript/effects/EffFireworkLaunch.java @@ -70,6 +70,7 @@ public boolean init(Expression[] exprs, int matchedPattern, Kleenean isDelaye protected void execute(Event event) { FireworkEffect[] effects = this.effects.getArray(event); int power = lifetime.getOptionalSingle(event).orElse(1).intValue(); + power = Math.min(127, Math.max(0, power)); for (Location location : locations.getArray(event)) { World world = location.getWorld(); if (world == null)