Skip to content

Commit

Permalink
Fix `Event handlers 'GameStageEvents.stageAdded' doesn't support extr…
Browse files Browse the repository at this point in the history
…a id create!` caused when firing the event. (#695)

Someone forgot to test!
  • Loading branch information
ChiefArug authored Sep 6, 2023
1 parent 6394542 commit ab4493e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import dev.latvian.mods.kubejs.KubeJSPlugin;
import dev.latvian.mods.kubejs.event.EventGroup;
import dev.latvian.mods.kubejs.event.EventHandler;
import dev.latvian.mods.kubejs.event.Extra;
import dev.latvian.mods.kubejs.stages.StageCreationEvent;
import dev.latvian.mods.kubejs.stages.Stages;
import net.darkhax.gamestages.event.GameStageEvent;
Expand All @@ -12,8 +13,8 @@ public class GameStagesIntegration extends KubeJSPlugin {

public static final EventGroup GROUP = EventGroup.of("GameStageEvents");

public static final EventHandler STAGE_ADDED = GROUP.common("stageAdded", () -> GameStageEventJS.class);
public static final EventHandler STAGE_REMOVED = GROUP.common("stageRemoved", () -> GameStageEventJS.class);
public static final EventHandler STAGE_ADDED = GROUP.common("stageAdded", () -> GameStageEventJS.class).extra(Extra.STRING);
public static final EventHandler STAGE_REMOVED = GROUP.common("stageRemoved", () -> GameStageEventJS.class).extra(Extra.STRING);

@Override
public void init() {
Expand Down

0 comments on commit ab4493e

Please sign in to comment.